USB: Let usb_sg_init to set transfer_buffer more often
authorPete Zaitcev <zaitcev@redhat.com>
Thu, 11 Jun 2009 14:40:39 +0000 (08:40 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:19 +0000 (06:46 -0700)
commit81bf46f3034046c572714bdee1dc51beb3475082
treeb1fbbefed67dbf9f6e76e1ce0a8efb2e573599cd
parent4e9e92003529e5c7bb11281f7c2c9b3fe8858403
USB: Let usb_sg_init to set transfer_buffer more often

This fix permits the "new" usbmon to access usb-storage's data buffer
without DMA remapping tricks. It should be compatible with PIO controllers
and not add any new crashes. Note that from now on PIO controllers and
usbmon are uniform in their access pattern and if one crashes then
the other will too. Hopefuly neither does.

As a side effect, we get rid for #ifdefs, which were a little ugly.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c