regmap: sdw-mbq: Fix swap of timeout and retry times
Subsystems (2)
PATCH 1/1 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.
--- drivers/base/regmap/regmap-sdw-mbq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/regmap/regmap-sdw-mbq.c +1 -1
@@ -59,7 +59,7 @@ static int regmap_sdw_mbq_poll_busy(struct sdw_slave *slave, unsigned int reg,if (ctx->readable_reg (dev, reg)) { ret =read_poll_timeout (sdw_read_no_pm, val, val <0 || !(val &SDCA_CTL_ENTITY_0_FUNCTION_BUSY ), - ctx->cfg.timeout_us, ctx->cfg.retry_us, + ctx->cfg.retry_us, ctx->cfg.timeout_us, false, slave, reg);if (val <0 )return val;
Signature · 1 line
2.47.3
Mark Brown
maintainerQuoted 1 line · Charles Keepax
regmap: sdw-mbq: Fix swap of timeout and retry times
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-7.2
Thanks!
[1/1] regmap: sdw-mbq: Fix swap of timeout and retry times
https://git.kernel.org/broonie/regmap/c/ae7fd6ff4c67
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark