mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 13:23:02 -04:00
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
This commit is contained in:
@@ -56,10 +56,10 @@ static int regmap_sdw_mbq_poll_busy(struct sdw_slave *slave, unsigned int reg,
|
||||
reg = SDW_SDCA_CTL(SDW_SDCA_CTL_FUNC(reg), 0,
|
||||
SDCA_CTL_ENTITY_0_FUNCTION_STATUS, 0);
|
||||
|
||||
if (ctx->readable_reg(dev, reg)) {
|
||||
if (!ctx->readable_reg || 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;
|
||||
|
||||
Reference in New Issue
Block a user