Re: [PATCH] regmap: cache: Make sure to sync the last register in a block

2013-08-05 Thread Mark Brown
On Mon, Aug 05, 2013 at 11:21:29AM +0200, Lars-Peter Clausen wrote: > regcache_sync_block_raw_flush() expects the address of the register after last > register that needs to be synced as its parameter. But the last call to > regcache_sync_block_raw_flush() in regcache_sync_block_raw() passes the >

[PATCH] regmap: cache: Make sure to sync the last register in a block

2013-08-05 Thread Lars-Peter Clausen
regcache_sync_block_raw_flush() expects the address of the register after last register that needs to be synced as its parameter. But the last call to regcache_sync_block_raw_flush() in regcache_sync_block_raw() passes the address of the last register in the block. This effectively always skips ove