On Mon, Dec 23, 2013 at 07:34:24PM +0100, Geert Uytterhoeven wrote: > 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]>
I don't believe that I have access to the sample code, but I do trust your judgement. Acked-by: Simon Horman <[email protected]> > --- > drivers/spi/spi-rspi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c > index 9e0301014f48..b04835d809f5 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) > 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, > -- > 1.7.9.5 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sh" in > the body of a message to [email protected] > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
