Commit eab5abd
committed
regmap: Check for register readability before checking cache during read
Ensure that we don't return a spurious cache hit for unreadable registers
(eg, with the flat cache which doesn't understand sparseness) by checking
for readability before we do a cache lookup.
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230613-b4-regmap-check-readability-before-cache-v1-1-b144c0b01ed9@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent b629c69 commit eab5abd
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2897 | 2897 | | |
2898 | 2898 | | |
2899 | 2899 | | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
2900 | 2903 | | |
2901 | 2904 | | |
2902 | 2905 | | |
| |||
2906 | 2909 | | |
2907 | 2910 | | |
2908 | 2911 | | |
2909 | | - | |
2910 | | - | |
2911 | | - | |
2912 | 2912 | | |
2913 | 2913 | | |
2914 | 2914 | | |
| |||
0 commit comments