Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1465026 > unrolled thread
| Started by | Elaine Zhang <zhangqing@rock-chips.com> |
|---|---|
| First post | 2016-08-18 11:10 +0200 |
| Last post | 2016-08-18 11:50 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 0/0] regmap: drop cache if the bus transfer error Elaine Zhang <zhangqing@rock-chips.com> - 2016-08-18 11:10 +0200
Re: [PATCH 0/0] regmap: drop cache if the bus transfer error Mark Brown <broonie@kernel.org> - 2016-08-18 11:50 +0200
| From | Elaine Zhang <zhangqing@rock-chips.com> |
|---|---|
| Date | 2016-08-18 11:10 +0200 |
| Subject | [PATCH 0/0] regmap: drop cache if the bus transfer error |
| Message-ID | <s7ruO-66w-37@gated-at.bofh.it> |
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 handle that gracefully,
and may be my modify is not the best way.
But as I described is how to slove that problem.
Elaine Zhang (1):
regmap: drop cache if the bus transfer error
drivers/base/regmap/regmap.c | 2 ++
1 file changed, 2 insertions(+)
--
1.9.1
[toc] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2016-08-18 11:50 +0200 |
| Message-ID | <s7s7v-6mS-3@gated-at.bofh.it> |
| In reply to | #1465026 |
[Multipart message — attachments visible in raw view] — view raw
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 cache data which is not the real register value. Please don't send cover letters for single patches, if there is anything that needs saying put it in the changelog of the patch or after the --- if it's administrative stuff. This reduces mail volume and ensures that any important information is recorded in the changelog rather than being lost.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web