Skip to content

Commit aaf5f0d

Browse files
povikbroonie
authored andcommitted
ASoC: apple: mca: Fix final status read on SERDES reset
From within the early trigger we are doing a reset of the SERDES unit, but the final status read is on a bad address. Add the missing SERDES unit offset in calculation of the address. Fixes: 3df5d0d ("ASoC: apple: mca: Start new platform driver") Signed-off-by: Martin Povišer <povik+lin@cutebit.org> Link: https://lore.kernel.org/r/20230224153302.45365-1-povik+lin@cutebit.org Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent b5bfa72 commit aaf5f0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/apple/mca.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static void mca_fe_early_trigger(struct snd_pcm_substream *substream, int cmd,
210210
SERDES_CONF_SOME_RST);
211211
readl_relaxed(cl->base + serdes_conf);
212212
mca_modify(cl, serdes_conf, SERDES_STATUS_RST, 0);
213-
WARN_ON(readl_relaxed(cl->base + REG_SERDES_STATUS) &
213+
WARN_ON(readl_relaxed(cl->base + serdes_unit + REG_SERDES_STATUS) &
214214
SERDES_STATUS_RST);
215215
break;
216216
default:

0 commit comments

Comments
 (0)