]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Don't warn about cache only mode for devices with no cache
authorMark Brown <broonie@kernel.org>
Wed, 22 Jun 2022 17:17:23 +0000 (18:17 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:21:59 +0000 (13:21 +0100)
commitc17e60c1f925f2eb5430f5e37b51fa8088f013ac
tree529e0cb243def9fab64de48f051c94142df20e14
parent44e9d54de6d7c7c7f65278f21f655766a7e2b5b5
regmap: Don't warn about cache only mode for devices with no cache

For devices with no cache it can make sense to use cache only mode as a
mechanism for trapping writes to hardware which is inaccessible but since
no cache is equivalent to cache bypass we force such devices into bypass
mode. This means that our check that bypass and cache only mode aren't both
enabled simultanously is less sensible for devices without a cache so relax
it.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220622171723.1235749-1-broonie@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache.c