History

Merge tag 'regmap-fix-v7.2-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap

Pull regmap fixes from Mark Brown: "A couple more fixes for regmap, this time for the SoundWire MBQ support: - Several drivers omit the readable_reg callback and it's generally optional in regmap but the MBQ code had an assumption that one was present added in one of the APIs, remove that - The timeout and retry intervals were swapped in read_poll_timeout() for soundwire-mbq" * tag 'regmap-fix-v7.2-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap: regmap: sdw-mbq: don't call an unset readable_reg callback regmap: sdw-mbq: Fix swap of timeout and retry times

Linus Torvalds committed 2 months ago

Commit beea2562 parents d2ed9ea 00268f91 file · +2 −2Browse files

Unified · Split

drivers/base/regmap/regmap-sdw-mbq.c+2−2
@@ -56,10 +56,10 @@ static int regmap_sdw_mbq_poll_busy(struct sdw_slave *slave, unsigned int reg, · 55 unmodified lines
5656 reg = SDW_SDCA_CTL(SDW_SDCA_CTL_FUNC(reg), 0,
5757 SDCA_CTL_ENTITY_0_FUNCTION_STATUS, 0);
5858
59− if (ctx->readable_reg(dev, reg)) {
59+ if (!ctx->readable_reg || ctx->readable_reg(dev, reg)) {
6060 ret = read_poll_timeout(sdw_read_no_pm, val,
6161 val < 0 || !(val & SDCA_CTL_ENTITY_0_FUNCTION_BUSY),
62− ctx->cfg.timeout_us, ctx->cfg.retry_us,
62+ ctx->cfg.retry_us, ctx->cfg.timeout_us,
6363 false, slave, reg);
6464 if (val < 0)
6565 return val;