mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
regmap: Warn on raw I/O as well as bulk reads that bypass cache
As with the bulk reads we really should be able to make these play nicely with the cache but warn for now. Signed-off-by: Mark Brown <[email protected]> Acked-by: Dimitris Papastamos <[email protected]>
This commit is contained in:
parent
6e6ace00a0
commit
04e016adca
1 changed files with 4 additions and 0 deletions
|
|
@ -377,6 +377,8 @@ int regmap_raw_write(struct regmap *map, unsigned int reg,
|
|||
{
|
||||
int ret;
|
||||
|
||||
WARN_ON(map->cache_type != REGCACHE_NONE);
|
||||
|
||||
mutex_lock(&map->lock);
|
||||
|
||||
ret = _regmap_raw_write(map, reg, val, val_len);
|
||||
|
|
@ -481,6 +483,8 @@ int regmap_raw_read(struct regmap *map, unsigned int reg, void *val,
|
|||
{
|
||||
int ret;
|
||||
|
||||
WARN_ON(map->cache_type != REGCACHE_NONE);
|
||||
|
||||
mutex_lock(&map->lock);
|
||||
|
||||
ret = _regmap_raw_read(map, reg, val, val_len);
|
||||
|
|
|
|||
Loading…
Reference in a new issue