Skip to content

Commit 73b97d4

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: fsl_xcvr: clear the channel status control memory
memset_io() writes memory byte by byte with __raw_writeb() on the arm platform if the size is word. but XCVR data RAM memory can't be accessed with byte address, so with memset_io() the channel status control memory is not really cleared, use writel_relaxed() instead. Fixes: 2856448 ("ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver") Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Link: https://patch.msgid.link/20251126064509.1900974-1-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 950167a commit 73b97d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/fsl/fsl_xcvr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ static irqreturn_t irq0_isr(int irq, void *devid)
14211421
bitrev32(val);
14221422
}
14231423
/* clear CS control register */
1424-
memset_io(reg_ctrl, 0, sizeof(val));
1424+
writel_relaxed(0, reg_ctrl);
14251425
}
14261426
} else {
14271427
regmap_read(xcvr->regmap, FSL_XCVR_RX_CS_DATA_0,

0 commit comments

Comments
 (0)