]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
regmap: sdw-mbq: Fix swap of timeout and retry times
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 11 Aug 2026 13:18:16 +0000 (14:18 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 11 Aug 2026 15:37:59 +0000 (16:37 +0100)
commitae7fd6ff4c6713270d2efe6db87a4a58ccb7cc61
tree7cdd6a2414f2fa832c73a420ccf444654a96a221
parent4b05ccb17f92268384d483221a577fccfc291c7a
regmap: sdw-mbq: Fix swap of timeout and retry times

When polling Function Busy using read_poll_timeout() the total timeout
and retry delay arguments are swapped. This leads to only a single retry
being processed, it seems the existing users typically do succeed before
the first retry.

Swap the arguments over to ensure the correct polling time.

Reported-by: Ville Saarinen <wiza@saarinenkoti.fi>
Link: https://lore.kernel.org/linux-sound/ansTPGgVNoDJlA5r@opensource.cirrus.com/T/#m680731a2f307f1f5176b27ed5aa560ddc94e5d62
Fixes: 5bc493bf0c37 ("regmap: sdw-mbq: Add support for SDCA deferred controls")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260811131816.332082-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-sdw-mbq.c