usb: musb: host: unmap the buffer for PIO data transfers
authorMaulik Mankad <x0082077@ti.com>
Fri, 24 Sep 2010 10:44:06 +0000 (13:44 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:53 +0000 (10:21 -0700)
commit496dda704bca1208e08773ba39b29a69536f5381
tree9b6e445625b8c40b526bef271e29df77b1cd8761
parent6587cc0f30cd2f27cf0677e470f18792925a23a4
usb: musb: host: unmap the buffer for PIO data transfers

The USB stack maps the buffer for DMA if the controller supports DMA.
MUSB controller can perform DMA as well as PIO transfers.
The buffer needs to be unmapped before CPU can perform
PIO data transfers.

Export unmap_urb_for_dma() so that drivers can perform
the DMA unmapping in a sane way.

Signed-off-by: Maulik Mankad <x0082077@ti.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hcd.c
drivers/usb/musb/musb_host.c
include/linux/usb/hcd.h