lkml.org 
[lkml]   [2012]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regmap: rbtree: Fix register default look-up in sync
On Fri, Mar 23, 2012 at 11:04:57AM +0100, Lars-Peter Clausen wrote:
> The code currently passes the register offset in the current block to
> regcache_lookup_reg. This works fine as long as there is only one block and with
> base register of 0, but in all other cases it will look-up the default for a
> wrong register, which can cause unnecessary register writes. This patch fixes
> it by passing the actual register number to regcache_lookup_reg.
>
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
> Cc: <stable@vger.kernel.org>

Good catch - I'm fairly surprised nobody (including me) noticed it over
the couple of kernel releases it's been there. Will apply once we've
got an -rc1.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-03-24 01:59    [W:0.029 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site