Explorar o código

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 <geert+renesas@linux-m68k.org>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Mark Brown <broonie@linaro.org>
Geert Uytterhoeven %!s(int64=12) %!d(string=hai) anos
pai
achega
df900e6783
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/spi/spi-rspi.c

+ 1 - 1
drivers/spi/spi-rspi.c

@@ -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,