mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
spi: rspi: Fix typo when clearing SPSR_OVRF
The overrun flag should be cleared in the SPI Status Register, not in the SPI Control Register, based on the SDK sample code. Signed-off-by: Geert Uytterhoeven <[email protected]> Acked-by: Simon Horman <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
efd85acb4f
commit
df900e6783
1 changed files with 1 additions and 1 deletions
|
|
@ -517,7 +517,7 @@ static void rspi_receive_init(struct rspi_data *rspi)
|
|||
rspi_read16(rspi, RSPI_SPDR); /* dummy read */
|
||||
if (spsr & SPSR_OVRF)
|
||||
rspi_write8(rspi, rspi_read8(rspi, RSPI_SPSR) & ~SPSR_OVRF,
|
||||
RSPI_SPCR);
|
||||
RSPI_SPSR);
|
||||
}
|
||||
|
||||
static int rspi_receive_pio(struct rspi_data *rspi, struct spi_message *mesg,
|
||||
|
|
|
|||
Loading…
Reference in a new issue