]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: dwc3: gadget: use generic map/unmap routines
authorFelipe Balbi <balbi@ti.com>
Mon, 19 Dec 2011 09:32:34 +0000 (11:32 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 Feb 2012 12:48:54 +0000 (14:48 +0200)
commit0fc9a1be09d9f8b19bcf64ab96836cb92beb0970
tree0aa8fa3ad9f5341356ba82b4ab7765077df5055e
parenta698908d3b3be915ac20cd37faeff1216f6b4fe8
usb: dwc3: gadget: use generic map/unmap routines

those routines have everything we need to map/unmap
USB requests and it's better to use them.

In order to achieve that, we had to add a simple
change on how we allocate and use our setup buffer;
we cannot allocate it from coherent anymore otherwise
the generic map/unmap routines won't be able to easily
know that the GetStatus request already has a DMA
address.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/gadget.h