]> git.baikalelectronics.ru Git - kernel.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)
commit2753ea48c5a765131f2b175a53f690f383fee557
tree0aa8fa3ad9f5341356ba82b4ab7765077df5055e
parent3ba4e4ae2ed3b43246e12d3dc6af34cd26e55f2a
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