regmap: debugfs: Allow writes to cache state settings
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Tue, 23 Jun 2015 13:32:55 +0000 (14:32 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jul 2015 17:45:00 +0000 (18:45 +0100)
commitd3dc5430d68fb91a62d971648170b34d46ab85bc
tree4b2d4fd06598a3837636e83c5d8b8d286e8ffc5d
parent0642ef6f2992eba46c41abb5ceb7d4fa14ba888e
regmap: debugfs: Allow writes to cache state settings

Allow the user to write the cache_only and cache_bypass settings.
This can be useful for debugging.

Since this can lead to the hardware getting out-of-sync with the
cache, at least for the period that the cache state is forced, the
kernel is tainted and the action is recorded in the kernel log.

When disabling cache_only through debugfs a cache sync will be performed.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-debugfs.c