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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>     3. It seems the I2C core takes care of locking already, so is it safy to
> remove "struct mutex lock in struct virtio_i2c"?

Looks to me like the mutex is only to serialize calls to
virtio_i2c_xfer(). Then, it can go. The core does locking. See, we have
i2c_transfer and __i2c_transfer, the unlocked version.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux