]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a2c0285936a66fbf792f4d577ce598eba657950
treeb1fbbefed67dbf9f6e76e1ce0a8efb2e573599cd
parent54d9005f2e18aa81a0d8d0c65a2b9130b973c344
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