Re: question about concurrent regmap i2c usage

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

 



On Tue, Apr 04, 2017 at 10:28:23AM +0200, Michael Hennerich wrote:

> A question came up, regarding whether it's recommended to mix regmap_i2c and
> plain i2c_smbus or direct adapter transfers.

> In this specific case for the i2c MUX portion we need to avoid double locks,
> and therefore use un-locked direct adapter transfers.

> The same time we also implement a small gpiochip, where we would like to use
> regmap to avoid some boilerplate code for the register cache.

That should work fine providing nothing tries to change cached registers
underneath the regmap.  regmap won't be able to tell anything's changed
otherwise.

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