Commit b099f1eb authored by Mark Brown's avatar Mark Brown Committed by Chunyan Zhang
Browse files

UPSTREAM: 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: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220622171723.1235749-1-broonie@kernel.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>

Bug: 274730214
Change-Id: I85f9ba5343f28b24c2b0588e8a1487d31b654283
(cherry picked from commit 3d0afe9c)
Signed-off-by: default avatarChunyan Zhang <chunyan.zhang@unisoc.com>
parent b3ebd7ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment