Skip to content

Commit 750c4f0

Browse files
Angelo Dureghellogregkh
authored andcommitted
spi: fix initial SPI_SR value in spi-fsl-dspi
[ Upstream commit aa54c1c ] On ColdFire mcf54418, using DSPI_DMA_MODE mode, spi transfers at first boot stage are not succeding: m25p80 spi0.1: unrecognized JEDEC id bytes: 00, 00, 00 The reason is the SPI_SR initial value set by the driver, that is not clearing (not setting to 1) the RF_DF flag. After a tour on the dspi hw modules that use this driver(Vybrid, ColdFire and ls1021a) a better init value for SR register has been set. Signed-off-by: Angelo Dureghello <[email protected]> Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent c4216cf commit 750c4f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-fsl-dspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
#define SPI_SR 0x2c
7171
#define SPI_SR_EOQF 0x10000000
7272
#define SPI_SR_TCFQF 0x80000000
73-
#define SPI_SR_CLEAR 0xdaad0000
73+
#define SPI_SR_CLEAR 0x9aaf0000
7474

7575
#define SPI_RSER 0x30
7676
#define SPI_RSER_EOQFE 0x10000000

0 commit comments

Comments
 (0)