]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit15488f5ad60f93c83beb61354972f957d879bc44
tree9b6e445625b8c40b526bef271e29df77b1cd8761
parentf27232f8213b40f70d77d8c0df6a33a5164913ce
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