USB: remove uses of URB_NO_SETUP_DMA_MAP
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 5 Mar 2010 20:10:17 +0000 (15:10 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:31 +0000 (13:21 -0700)
commit0ede76fcec5415ef82a423a95120286895822e2d
tree61aa2a0b499a0101033c59b8884328bdb31e5956
parent749da5f82fe33ff68dd4aa1a5e35cd9aa6246dab
USB: remove uses of URB_NO_SETUP_DMA_MAP

This patch (as1350) removes all usages of coherent buffers for USB
control-request setup-packet buffers.  There's no good reason to
reserve coherent memory for these things; control requests are hardly
ever used in large quantity (the major exception is firmware
transfers, and they aren't time-critical).  Furthermore, only seven
drivers used it.  We might as well always use streaming DMA mappings
for setup-packet buffers, and remove some extra complexity from
usbcore.

The DMA-mapping portion of hcd.c is currently in flux.  A separate
patch will be submitted to remove support for URB_NO_SETUP_DMA_MAP
after everything else settles down.  The removal should go smoothly,
as by then nobody will be using it.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
13 files changed:
drivers/hid/usbhid/hid-core.c
drivers/hid/usbhid/usbhid.h
drivers/hid/usbhid/usbkbd.c
drivers/input/misc/cm109.c
drivers/input/misc/powermate.c
drivers/input/misc/yealink.c
drivers/usb/core/urb.c
drivers/usb/core/usb.c
drivers/usb/misc/usbtest.c
drivers/usb/storage/transport.c
drivers/usb/storage/usb.c
drivers/usb/storage/usb.h
drivers/usb/wusbcore/wa-xfer.c