diff options
author | Geert Uytterhoeven <geert+renesas@linux-m68k.org> | 2013-12-23 13:34:24 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-24 08:12:07 -0500 |
commit | df900e678308d7fa1290681bfc336716b084b3c5 (patch) | |
tree | c57e28d3a61c352755c962a0e52402d5ed281f99 /drivers/spi/spi-rspi.c | |
parent | efd85acb4f2118348fc3a7c831872d5e70c7bec0 (diff) |
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>
Diffstat (limited to 'drivers/spi/spi-rspi.c')
-rw-r--r-- | drivers/spi/spi-rspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index b60862f58534..7a185bf431ed 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c | |||
@@ -517,7 +517,7 @@ static void rspi_receive_init(struct rspi_data *rspi) | |||
517 | rspi_read16(rspi, RSPI_SPDR); /* dummy read */ | 517 | rspi_read16(rspi, RSPI_SPDR); /* dummy read */ |
518 | if (spsr & SPSR_OVRF) | 518 | if (spsr & SPSR_OVRF) |
519 | rspi_write8(rspi, rspi_read8(rspi, RSPI_SPSR) & ~SPSR_OVRF, | 519 | rspi_write8(rspi, rspi_read8(rspi, RSPI_SPSR) & ~SPSR_OVRF, |
520 | RSPI_SPCR); | 520 | RSPI_SPSR); |
521 | } | 521 | } |
522 | 522 | ||
523 | static int rspi_receive_pio(struct rspi_data *rspi, struct spi_message *mesg, | 523 | static int rspi_receive_pio(struct rspi_data *rspi, struct spi_message *mesg, |