Re: [PATCH 0/0] regmap: drop cache if the bus transfer error

2016-08-18 Thread Mark Brown
On Thu, Aug 18, 2016 at 05:01:54PM +0800, Elaine Zhang wrote: > regmap_write > ->_regmap_raw_write > -->regcache_write first and than use map->bus->write to wirte i2c or spi > But if the i2c or spi transfer failed, But the cache is updated, So if I > use > regmap_read will get the

[PATCH 0/0] regmap: drop cache if the bus transfer error

2016-08-18 Thread Elaine Zhang
regmap_write ->_regmap_raw_write -->regcache_write first and than use map->bus->write to wirte i2c or spi But if the i2c or spi transfer failed, But the cache is updated, So if I use regmap_read will get the cache data which is not the real register value. I think the regmap should

[PATCH 0/0] regmap: drop cache if the bus transfer error

2016-08-17 Thread Elaine Zhang
regmap_write ->_regmap_raw_write -->regcache_write first and than use map->bus->write to wirte i2c or spi But if the i2c or spi transfer failed, But the cache is updated, So if I use regmap_read will get the cache data which is not the real register value. I think the regmap should