Re: [PATCH v11] i2c: virtio: add a virtio i2c frontend driver

From: Jie Deng
Date: Thu Jul 01 2021 - 21:05:29 EST



On 2021/7/1 18:45, Andy Shevchenko wrote:
On Thu, Jul 01, 2021 at 11:24:46AM +0800, Jie Deng wrote:
Add an I2C bus driver for virtio para-virtualization.

The controller can be emulated by the backend driver in
any device model software by following the virtio protocol.

The device specification can be found on
https://lists.oasis-open.org/archives/virtio-comment/202101/msg00008.html.

By following the specification, people may implement different
backend drivers to emulate different controllers according to
their needs.
- Use #ifdef CONFIG_PM_SLEEP to replace the "__maybe_unused".
Why is that?


Please refer to https://lkml.org/lkml/2021/3/23/285.