linux/drivers
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
..
acorn
acpi acpi: fix potential call to a freed memory section. 2007-05-17 05:23:04 -07:00
amba
ata [libata] Add drive to NCQ blacklist 2007-05-28 09:00:05 -04:00
atm [ATM]: Use mutex instead of binary semaphore in idt77252 driver. 2007-05-24 16:36:45 -07:00
auxdisplay cfag12864bfb: Use sys_ instead of cfb_ framebuffer accessors 2007-06-01 08:18:28 -07:00
base Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
block Off by one in floppy.c 2007-05-23 20:14:15 -07:00
bluetooth [Bluetooth] Always send HCI_Reset for Broadcom devices 2007-05-24 14:26:15 +02:00
cdrom
char tty: fix leakage of -ERESTARTSYS to userland 2007-06-01 08:18:29 -07:00
clocksource
connector
cpufreq
crypto [CRYPTO] geode: Fix in-place operations and set key 2007-05-24 21:23:24 +10:00
dio
dma
edac
eisa
fc4
firewire firewire: fix return code 2007-05-27 23:21:01 +02:00
firmware
hid
hwmon hwmon/applesmc: Handle name file creation error and deletion 2007-05-27 22:17:43 +02:00
i2c [ARM] 4403/1: Make the PXA-I2C driver work with lockdep validator 2007-05-26 10:09:39 +01:00
ide ide serverworks warning fixes 2007-05-24 02:42:39 +02:00
ieee1394 ieee1394: raw1394: Fix async send 2007-05-27 23:21:00 +02:00
infiniband IB/cm: Fix stale connection detection 2007-05-29 16:07:09 -07:00
input [ARM] Fix some section mismatch warnings 2007-05-30 17:48:45 +01:00
isdn Fix broken CLIR in isdn driver 2007-06-01 08:18:29 -07:00
kvm Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
leds
macintosh Merge branch 'for_paulus' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc 2007-05-29 13:42:28 -07:00
mca
md md: fix bug with linear hot-add and elsewhere 2007-05-23 20:14:14 -07:00
media V4L/DVB (5691): Ov7670: reset clkrc in rgb565 mode 2007-05-22 16:16:29 -03:00
message Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 2007-05-29 13:39:52 -07:00
mfd Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2007-05-23 08:11:43 -07:00
misc misc/tifm_7xx1: replace deprecated irq flag 2007-06-01 08:18:28 -07:00
mmc mmc: clean up unused parts of block driver 2007-05-24 06:51:02 +02:00
mtd parse errors in ifdefs 2007-06-01 08:18:28 -07:00
net parse errors in ifdefs 2007-06-01 08:18:28 -07:00
nubus
oprofile Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
parisc
parport parport_pc needs dma-mapping.h 2007-05-16 21:19:15 -07:00
pci msi: mask the msix vector before we unmap it 2007-06-01 08:18:27 -07:00
pcmcia at91: fix enable/disable_irq_wake symmetry in pcmcia driver 2007-05-31 07:58:13 -07:00
pnp
ps3
rapidio
rtc RTC: use fallback IRQ if PNP tables don't provide one 2007-06-01 08:18:29 -07:00
s390 [S390] cio: deregister ccw device when pgid disband failed 2007-05-31 17:38:14 +02:00
sbus [SPARC]: Missing #include <linux/mm.h> in drivers/sbus/char/flash.c 2007-05-31 01:52:53 -07:00
scsi parse errors in ifdefs 2007-06-01 08:18:28 -07:00
serial Merge master.kernel.org:/home/rmk/linux-2.6-arm 2007-05-30 10:04:01 -07:00
sh
sn
spi atmel_spi dma address bugfix 2007-06-01 08:18:29 -07:00
tc
telephony
usb USB: replace flush_workqueue with cancel_sync_work 2007-05-29 13:39:07 -07:00
video fbdev: Move declaration of fb_class to <linux/fb.h> 2007-06-01 08:18:28 -07:00
w1
zorro
Kconfig
Makefile