regmap: Bypassing cache when initializing cache
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 17 Feb 2012 13:27:26 +0000 (18:27 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 17 Feb 2012 17:19:00 +0000 (09:19 -0800)
commitdf00c79f78d8b0ad788daf689ea461ace9d0811f
tree75ddc463dc7392797bc3d19dad2c010f3497d498
parent8eaeb21925563075ae036c2e5ba8d041b70e18fa
regmap: Bypassing cache when initializing cache

During regcache_init, if client has not passed the
default data of cached register then it is directly
read from the hw to initialize cache. This hw register
read happens before cache ops are initialized and hence
avoiding register read to check for the data available
on cache or not by enabling flag of cache_bypass.

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