summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-12-19 11:32:34 +0200
committerFelipe Balbi <balbi@ti.com>2012-02-28 14:48:54 +0200
commit0fc9a1be09d9f8b19bcf64ab96836cb92beb0970 (patch)
tree0aa8fa3ad9f5341356ba82b4ab7765077df5055e /drivers/usb/dwc3/gadget.h
parenta698908d3b3be915ac20cd37faeff1216f6b4fe8 (diff)
downloadlinux-stable-0fc9a1be09d9f8b19bcf64ab96836cb92beb0970.tar.gz
linux-stable-0fc9a1be09d9f8b19bcf64ab96836cb92beb0970.tar.bz2
linux-stable-0fc9a1be09d9f8b19bcf64ab96836cb92beb0970.zip
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>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r--drivers/usb/dwc3/gadget.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h
index d97f467d41cc..12f1e104977f 100644
--- a/drivers/usb/dwc3/gadget.h
+++ b/drivers/usb/dwc3/gadget.h
@@ -108,8 +108,6 @@ int dwc3_gadget_ep0_queue(struct usb_ep *ep, struct usb_request *request,
int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value);
int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep,
unsigned cmd, struct dwc3_gadget_ep_cmd_params *params);
-void dwc3_map_buffer_to_dma(struct dwc3_request *req);
-void dwc3_unmap_buffer_from_dma(struct dwc3_request *req);
/**
* dwc3_gadget_ep_get_transfer_index - Gets transfer index from HW