android_kernel_xiaomi_sm8350/drivers/spi
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
..
at25.c spi: at25 driver is for EEPROM not FLASH 2007-12-05 09:21:18 -08:00
atmel_spi.c atmel_spi: reload RCR before TCR 2007-12-10 19:43:55 -08:00
atmel_spi.h
au1550_spi.c
Kconfig Blackfin arch: punt CONFIG_BFIN -- we already have CONFIG_BLACKFIN 2007-11-23 14:28:44 +08:00
Makefile
mpc52xx_psc_spi.c Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
omap2_mcspi.c
omap_uwire.c SPI driver runtime footprint shrinkage 2007-10-16 09:43:09 -07:00
pxa2xx_spi.c pxa2xx_spi: fix typo in description 2007-12-10 19:43:54 -08:00
spi_bfin5xx.c spi_bfin5xx: fix typo in description 2007-12-10 19:43:55 -08:00
spi_bitbang.c spi doesn't need class_device 2007-10-16 09:43:10 -07:00
spi_butterfly.c
spi_imx.c spi_imx: fix typo in description 2007-12-10 19:43:55 -08:00
spi_lm70llp.c spi doesn't need class_device 2007-10-16 09:43:10 -07:00
spi_mpc83xx.c SPI driver runtime footprint shrinkage 2007-10-16 09:43:09 -07:00
spi_s3c24xx_gpio.c spi: S3C2410: add bus number to SPI GPIO driver 2007-11-29 09:24:52 -08:00
spi_s3c24xx.c SPI driver runtime footprint shrinkage 2007-10-16 09:43:09 -07:00
spi_txx9.c spi: fix error paths on txx9spi_probe 2007-11-14 18:45:39 -08:00
spi.c spi: simplify spi_sync() calling convention 2007-12-05 09:21:18 -08:00
spidev.c fix abuses of ptrdiff_t 2007-10-29 07:41:33 -07:00
tle62x0.c tle62x0 driver stops ignoring read errors 2007-11-14 18:45:42 -08:00
xilinx_spi.c