[GIT PULL] regmap fixes for v4.8

From: Mark Brown
Date: Tue Sep 06 2016 - 09:33:23 EST


The following changes since commit 3eab887a55424fc2c27553b7bfe32330df83f7b8:

Linux 4.8-rc4 (2016-08-28 15:04:33 -0700)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-fix-v4.8-rc5

for you to fetch changes up to 787ad90332b3573d502a6c1aff52f708ca141976:

Merge remote-tracking branch 'regmap/fix/rbtree' into regmap-linus (2016-09-03 12:10:09 +0100)

----------------------------------------------------------------
regmap: Fixes for v4.8

Several fixes here, the main one being the change from Lars-Peter which
I'd been letting soak in -next since the merge window in case it
uncovered further issues as it's a minimal fix rather than a change
addressing the root cause of the problems (which would've been too
invasive for -rc):

- The biggest change is a fix from Lars-Peter to ensure that we don't
create overlapping rbtree nodes which in turn avoids returning
corrupt cache values to users, fixing some issues that were exposed
by some recent optimisations with certain access patterns but had
been present for a long time.
- A fix from Elaine Zhang to stop us updating the cache if we get an
I/O error when writing to the hardware.
- A fix fromm Maarten ter Huurne to avoid uninitialized defaults in
cases where we have non-readable registers but are initializing the
cache by reading from the device.

----------------------------------------------------------------
Elaine Zhang (1):
regmap: drop cache if the bus transfer error

Lars-Peter Clausen (1):
regmap: rbtree: Avoid overlapping nodes

Maarten ter Huurne (1):
regmap: cache: Fix num_reg_defaults computation from reg_defaults_raw

Mark Brown (2):
Merge remote-tracking branch 'regmap/fix/cache' into regmap-linus
Merge remote-tracking branch 'regmap/fix/rbtree' into regmap-linus

drivers/base/regmap/regcache-rbtree.c | 38 ++++++++++++++++++++++++++---------
drivers/base/regmap/regcache.c | 5 +++--
drivers/base/regmap/regmap.c | 2 ++
3 files changed, 33 insertions(+), 12 deletions(-)

Attachment: signature.asc
Description: PGP signature