summaryrefslogtreecommitdiffstats
path: root/kernel/resource.c
diff options
context:
space:
mode:
authorDavid Brownell2009-06-30 20:41:30 +0200
committerLinus Torvalds2009-07-01 03:56:00 +0200
commit529ba0d9669386157457a1cb96294d2fe79b3f88 (patch)
tree258de690144abc8b4a86424d2e888ca6f8d67917 /kernel/resource.c
parentfbdev: add mutex for fb_mmap locking (diff)
downloadkernel-qcow2-linux-529ba0d9669386157457a1cb96294d2fe79b3f88.tar.gz
kernel-qcow2-linux-529ba0d9669386157457a1cb96294d2fe79b3f88.tar.xz
kernel-qcow2-linux-529ba0d9669386157457a1cb96294d2fe79b3f88.zip
spi: bitbang bugfix in message setup
Bugfix to spi_bitbang infrastructure: make sure to always set transfer parameters on the first pass through the message's per-transfer loop. This can matter with drivers that replace the per-word or per-buffer transfer primitives, on busses with multiple SPI devices. Previously, this could have started messages using the settings left after previous messages. The problem was observed when a high speed chip (m25p80 type flash) was running very slowly because a low speed device (avr8 microcontroller) had previously used the bus. Similar faults could have driven the low speed device too fast, or used an unexpected word size. Acked-by: Steven A. Falco <sfalco@harris.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>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions