# Re: \[PATCH v10\] i2c: virtio: add a virtio i2c frontend driver

- From: Jie Deng \<hidden\>
- Date: 2021-04-15 08:15:17 
- List: virtualization
- Page: https://ratatoskr.run/virtualization/2021/04/6339882
- Thread: https://ratatoskr.run/linux-i2c/2021/03/6311697/t.md

```text
On 2021/4/15 15:28, Wolfram Sang wrote:

>> Now that we were able to catch you, I will use the opportunity to
>> clarify the doubts I had.
>>
>> - struct mutex lock in struct virtio_i2c, I don't think this is
>>    required since the core takes care of locking in absence of this.
> This is likely correct.


OK. Then I will remove the lock.


>> - Use of I2C_CLASS_DEPRECATED flag, I don't think it is required for
>>    new drivers.
> This is definately correct :)


Do you mean a new driver doesn't need to set the following ?

vi->adap.class = I2C_CLASS_DEPRECATED;

Just leave the class to be 0 ?


>
> Let's see if I will have more questions...


OK. Thank you.

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
```
