diff options
author | Felipe Balbi <balbi@ti.com> | 2011-12-19 04:32:34 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-02-28 07:48:54 -0500 |
commit | 0fc9a1be09d9f8b19bcf64ab96836cb92beb0970 (patch) | |
tree | 0aa8fa3ad9f5341356ba82b4ab7765077df5055e /drivers/usb/dwc3/gadget.h | |
parent | a698908d3b3be915ac20cd37faeff1216f6b4fe8 (diff) |
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.h | 2 |
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, | |||
108 | int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value); | 108 | int __dwc3_gadget_ep_set_halt(struct dwc3_ep *dep, int value); |
109 | int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, | 109 | int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, |
110 | unsigned cmd, struct dwc3_gadget_ep_cmd_params *params); | 110 | unsigned cmd, struct dwc3_gadget_ep_cmd_params *params); |
111 | void dwc3_map_buffer_to_dma(struct dwc3_request *req); | ||
112 | void dwc3_unmap_buffer_from_dma(struct dwc3_request *req); | ||
113 | 111 | ||
114 | /** | 112 | /** |
115 | * dwc3_gadget_ep_get_transfer_index - Gets transfer index from HW | 113 | * dwc3_gadget_ep_get_transfer_index - Gets transfer index from HW |