regmap: Bypassing cache when initializing cache
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 17 Feb 2012 13:27:26 +0000 (18:27 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 21 Mar 2012 05:31:35 +0000 (22:31 -0700)
commit872bf914c5f1e1a10d822a90cd8d88f97a345717
treece6d428e1ee4324d9071c0b2532597d3c2081f18
parentfeb340b2e00d50f88dc3da3fab9501787670cbee
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>
(cherry picked from commit df00c79f78d8b0ad788daf689ea461ace9d0811f)

Change-Id: I4398162bd6b12689c795afe5ee02397e975e456c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87593

Rebase-Id: R33702f824bca2c8796f9bd3647cd25a5635628c6
drivers/base/regmap/regcache.c