]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Reset cache status when reinitialsing the cache
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:39:37 +0000 (13:39 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:49:30 +0000 (13:49 +0000)
commitf80f76a6988a819468e0426f6f162ca1a53d366b
treeb98bf2c5f9d26748129616268638b55b4106d167
parent1e5ed5b4d5a9924b9ec96032051e81bc6340728e
regmap: Reset cache status when reinitialsing the cache

When we reinitialise the cache make sure that we reset the cache access
flags, ensuring that the reinitialised cache is in the default state
which is what callers would and do expect given the function name.

This is particularly likely to cause issues in systems where there was no
cache previously as those systems have cache bypass enabled, as for the
wm8994 driver where this was noticed.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c