android_kernel_samsung_msm8976/drivers/spi
Gerard Kam dc329442b9 atmel_spi: fix hang due to missed interrupt
For some time my at91sam9260 board with JFFS2 on serial flash (m25p80)
would hang when accessing the serial flash and SPI bus.  Slowing the SPI
clock down to 9 MHz reduced the occurrence of the hang from "always"
during boot to a nuisance level that allowed other SW development to
continue.  Finally had to address this issue when an application stresses
the I/O to always cause a hang.

Hang seems to be caused by a missed SPI interrupt, so that the task ends
up waiting forever after calling spi_sync().  The fix has 2 parts.  First
is to halt the DMA engine before the "current" PDC registers are loaded.
This ensures that the "next" registers are loaded before the DMA operation
takes off.  The second part of the fix is a kludge that adds a
"completion" interrupt in case the ENDRX interrupt for the last segment of
the DMA chaining operation was missed.

The patch allows the SPI clock for the serial flash to be increased from 9
MHz to 15 MHz (or more?).  No hangs or SPI overruns were encountered.

Haavard: while this patch does indeed improve things, I still see overruns
and CRC errors on my NGW100 board when running the DataFlash at 10 MHz.
However, I think some improvement is better than nothing, so I'm passing
this on for inclusion in 2.6.27.

Signed-off-by: Gerard Kam <gerardk5@verizon.net>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-08-04 16:58:45 -07:00
..
at25.c
atmel_spi.c atmel_spi: fix hang due to missed interrupt 2008-08-04 16:58:45 -07:00
atmel_spi.h
au1550_spi.c dma-mapping: add the device argument to dma_mapping_error() 2008-07-26 12:00:03 -07:00
Kconfig
Makefile
mpc52xx_psc_spi.c mpc52xx_psc_spi: fix block transfer 2008-07-28 16:30:21 -07:00
omap2_mcspi.c dma-mapping: add the device argument to dma_mapping_error() 2008-07-26 12:00:03 -07:00
omap_uwire.c
pxa2xx_spi.c dma-mapping: add the device argument to dma_mapping_error() 2008-07-26 12:00:03 -07:00
spi.c
spi_bfin5xx.c
spi_bitbang.c
spi_butterfly.c
spi_imx.c dma-mapping: add the device argument to dma_mapping_error() 2008-07-26 12:00:03 -07:00
spi_lm70llp.c
spi_mpc83xx.c
spi_s3c24xx.c spi: S3C24XX: reset register status on resume. 2008-08-04 16:58:45 -07:00
spi_s3c24xx_gpio.c
spi_sh_sci.c
spi_txx9.c
spidev.c
tle62x0.c
xilinx_spi.c