diff options
| author | Andrey Golovko <andrey.golovko@gmail.com> | 2026-08-11 22:14:35 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-08-12 18:08:48 +0100 |
| commit | 00268f9452d2a0d660aa9c1bb0ca07a994af6a4f (patch) | |
| tree | 95e8ecb07d4bd7eaecd22c8b1e4eb5fed5fe165c /tools/perf/scripts/python | |
| parent | ae7fd6ff4c6713270d2efe6db87a4a58ccb7cc61 (diff) | |
regmap: sdw-mbq: don't call an unset readable_reg callback
regmap_sdw_mbq_poll_busy() decides whether to poll the Function Busy bit
by calling ctx->readable_reg(), which is a straight copy of
config->readable_reg. That callback is optional: regmap_readable() treats
a NULL ->readable_reg as "every register is readable", and drivers rely on
that. es9356 and tac5xx2-sdw both build an MBQ regmap without one.
Since commit ca1b11b36d82 ("regmap: sdw-mbq: Allow defers on undeferrable
controls") the poll runs on every -ENODATA, not only for Controls the
driver marked deferrable, so any of those devices answering
COMMAND_IGNORED takes the kernel through a NULL function pointer.
Treat a missing callback the way the rest of regmap does and poll.
Fixes: 5bc493bf0c37 ("regmap: sdw-mbq: Add support for SDCA deferred controls")
Signed-off-by: Andrey Golovko <andrey.golovko@gmail.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260811184500.5312-1-andrey.golovko@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
