linux/drivers/spi
Haavard Skinnemoen 5a9a62bb03 atmel_spi dma address bugfix
When either rx_buf or tx_buf is not being used, i.e.  for plain read- or
write operations, the atmel_spi uses a fixed-size DMA buffer instead.  If
the transfer is longer than the size of this buffer, it is split into
multiple DMA transfers.

When the transfer is split like this, the atmel_spi driver ends up using
the same DMA address again and again even for the buffer that came from the
user, which is of course wrong.  Fix this by adding the number of bytes
already transferred to the DMA address so that the data ends up in the
right place.

Thanks to Wu Xuan for discovering this bug.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
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-06-01 08:18:29 -07:00
..
at25.c [PATCH] SPI: at25: do not use pointer before assignment 2007-03-16 19:25:05 -07:00
atmel_spi.c atmel_spi dma address bugfix 2007-06-01 08:18:29 -07:00
atmel_spi.h [PATCH] SPI: atmel_spi driver 2007-02-14 08:09:53 -08:00
au1550_spi.c au1550 SPI controller driver 2007-05-08 11:15:16 -07:00
Kconfig MPC52xx PSC SPI master driver 2007-05-11 08:29:35 -07:00
Makefile MPC52xx PSC SPI master driver 2007-05-11 08:29:35 -07:00
mpc52xx_psc_spi.c mpc52xx_psc_spi: fix it for CONFIG_PPC_MERGE 2007-05-23 20:14:11 -07:00
omap_uwire.c omap_uwire: SPI_CPHA mode bugfix 2007-05-23 20:14:15 -07:00
pxa2xx_spi.c [PATCH] SPI cleanup() method param becomes non-const 2007-02-12 09:48:31 -08:00
spi.c SPI kerneldoc 2007-05-08 11:15:16 -07:00
spi_bfin5xx.c Blackfin SPI: cleanup according to David Brownell's review 2007-05-21 09:50:24 -07:00
spi_bitbang.c [PATCH] spi: destroy workqueue after spi_unregister_master 2007-03-16 19:25:04 -07:00
spi_butterfly.c minor spi_butterfly cleanup 2007-05-08 11:15:15 -07:00
spi_imx.c [PATCH] SPI controller build/warning fixes 2007-02-20 17:10:16 -08:00
spi_mpc83xx.c [PATCH] SPI: define null tx_buf to mean "shift out zeroes" 2006-12-30 10:56:42 -08:00
spi_s3c24xx.c spi_s3c24xx.c: Fix build 2007-05-07 12:13:04 -07:00
spi_s3c24xx_gpio.c [PATCH] spi_s3c2410_gpio.c spi mode 2 and 3 support 2007-02-20 17:10:16 -08:00
spidev.c spi: potential memleak in spidev_ioctl 2007-05-23 20:14:12 -07:00