]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fix initial SPI_SR value in spi-fsl-dspi
authorAngelo Dureghello <angelo@sysam.it>
Wed, 26 Dec 2018 21:45:06 +0000 (22:45 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 18:12:24 +0000 (18:12 +0000)
commit0f05f73a3be2ad96953d85cb0f404f5db8d9dd5d
tree266ca5b618c19d75c10e00d1198942cc8e3f081e
parenta5491c2e9627606eed680482aa0ac58c76797f18
spi: fix initial SPI_SR value in spi-fsl-dspi

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 <angelo@sysam.it>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c