]> err.no Git - linux-2.6/commit
[PATCH] USB: shuttle_usbat: Fix handling of scatter-gather buffers
authorPeter Chubb <peterc@gelato.unsw.edu.au>
Tue, 2 May 2006 17:30:12 +0000 (18:30 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Jun 2006 22:04:10 +0000 (15:04 -0700)
commit141804d401631f0384feabfa5fc3e2ce1321c0f0
tree196342c81d2e9de937575d7851525a3e5b2f210e
parent69165c29bb4db9bafead7c6574c73ce245965f3a
[PATCH] USB: shuttle_usbat: Fix handling of scatter-gather buffers

I've worked out what's going wrong.  The scsi layer is now much
more likely to pass down scatterlists instead of plain buffers.  So
you have to make sure that they're handled correctly.  In one of the
changes along the way, usbat_write_block and friends stopped obeying
the srb->use_sg flag.

Anyway, with the appended patch, and the one I'm putting in the next email, it
all seems to work for the HP cd4e.  Of course, someone's going to have
to test it with the flash drives as well....

This patch teaches the usbat_{read,write}_block functions to
obey the use_sg flag in the scsi-request.

Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/shuttle_usbat.c