diff options
author | Javier Martinez Canillas <[email protected]> | 2022-06-16 09:34:34 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-06-20 11:35:37 +0100 |
commit | f6e5c3850d1174bf3ca53457d64e6665f48c9041 (patch) | |
tree | fd2d77dfbf1766db76d591a5ed4c1a298523aa1f /tools/perf/scripts/python/intel-pt-events.py | |
parent | 5ac01e023a1b0492e159ad2f6734e0a350c1b6b6 (diff) |
regmap: Make regmap_noinc_read() return -ENOTSUPP if map->read isn't set
Before adding support to define bulk read/write callbacks in regmap_config
by the commit d77e74561368 ("regmap: Add bulk read/write callbacks into
regmap_config"), the regmap_noinc_read() function returned an errno early
a map->bus->read callback wasn't set.
But that commit dropped the check and now a call to _regmap_raw_read() is
attempted even when bulk read operations are not supported. That function
checks for map->read anyways but there's no point to continue if the read
can't succeed.
Also is a fragile assumption to make so is better to make it fail earlier.
Fixes: d77e74561368 ("regmap: Add bulk read/write callbacks into regmap_config")
Signed-off-by: Javier Martinez Canillas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions