1
0
Files
linux/drivers
Rini van Zetten d84248bf46 atmel_spi: reload RCR before TCR
We have a wifi module connected to the spi bus and got sometimes FIFO
overrun errors on the spi bus.

After some investigation i found that the driver loads the TCR (transmit
count) register before the RCR (receive count).  When the transfer list is
not empty the atmel_spi_next_message is called while tx and rx are enabled.
 As soon as the TCR is loaded, hardware starts transfer and causes a rx
fifo overrun because the RCR is not loaded yet.

Load the RCR before the TCR.  After this patch the fifo overrun disapears
at out setup.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Rini van Zetten <rini@arvoo.nl>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-12-10 19:43:55 -08:00
..
2007-12-10 19:43:55 -08:00
2007-12-03 08:13:17 -08:00
2007-12-04 01:35:32 -05:00
2007-12-07 09:06:53 +00:00
2007-11-14 18:45:39 -08:00
2007-11-29 09:24:53 -08:00
2007-12-10 19:43:54 -08:00
2007-12-10 19:43:55 -08:00
2007-11-14 18:45:36 -08:00