commit | 19254411db4e69d90958244c5017e7e4a38547b0 | [log] [tgz] |
---|---|---|
author | Lars-Peter Clausen <lars@metafoo.de> | Wed Nov 16 16:28:19 2011 +0100 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Wed Nov 16 17:34:53 2011 +0000 |
tree | fd45ca553cb7aef1c4665b6a28df92818d8ce507 | |
parent | 720e4616e8fd85284ef1addd8b8d93d8415e8dbc [diff] |
regmap: Try cached read before checking if a hardware read is possible For some register format types we do not provide a parse_val so we can not do a hardware read. But a cached read is still possible, so try to read from the cache first, before checking whether a hardware read is possible. Otherwise the cache becomes pretty useless for these register types. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>