Skip to content

Commit 6a5d6fd

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: baytrail: Fix register access
Baytrail has 64 bit registers, so we should use *read64* to read from it and then use proper mask values to check status. Signed-off-by: Amadeusz Sławiński <[email protected]> Tested-by: Brent Lu <[email protected]> Acked-by: Cezary Rojewski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fe94462 commit 6a5d6fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/intel/baytrail/sst-baytrail-ipc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,8 @@ static bool byt_is_dsp_busy(struct sst_dsp *dsp)
666666
{
667667
u64 ipcx;
668668

669-
ipcx = sst_dsp_shim_read_unlocked(dsp, SST_IPCX);
670-
return (ipcx & (SST_IPCX_BUSY | SST_IPCX_DONE));
669+
ipcx = sst_dsp_shim_read64_unlocked(dsp, SST_IPCX);
670+
return (ipcx & (SST_BYT_IPCX_BUSY | SST_BYT_IPCX_DONE));
671671
}
672672

673673
int sst_byt_dsp_init(struct device *dev, struct sst_pdata *pdata)

0 commit comments

Comments
 (0)