Re: [PATCH] regmap: regcache-rbtree: Fix present bitmap resize

2015-03-07 Thread Daniel Baluta
On Sat, Mar 7, 2015 at 6:10 PM, Lars-Peter Clausen wrote: > When inserting a new register into a block at the lower end the present > bitmap is currently shifted into the wrong direction. The effect of this is > that the bitmap becomes corrupted and registers which are present might be > reported

Re: [PATCH] regmap: regcache-rbtree: Fix present bitmap resize

2015-03-07 Thread Mark Brown
On Sat, Mar 07, 2015 at 05:10:01PM +0100, Lars-Peter Clausen wrote: > When inserting a new register into a block at the lower end the present > bitmap is currently shifted into the wrong direction. The effect of this is > that the bitmap becomes corrupted and registers which are present might be >

[PATCH] regmap: regcache-rbtree: Fix present bitmap resize

2015-03-07 Thread Lars-Peter Clausen
When inserting a new register into a block at the lower end the present bitmap is currently shifted into the wrong direction. The effect of this is that the bitmap becomes corrupted and registers which are present might be reported as not present and vice versa. Fix this by shifting left rather th