summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2015-07-27 12:25:31 +0530
committerFelipe Balbi <balbi@ti.com>2015-07-30 11:43:34 -0500
commit2abd9d5fa60f90cd99801687904f528156d31e18 (patch)
tree5cd9b1e4dfe8028161bd82911cb3e62b41cd8efa /drivers/usb/dwc3/gadget.c
parent368ca113ca0a41bbf60be6886bbbd238523c6fba (diff)
downloadop-kernel-dev-2abd9d5fa60f90cd99801687904f528156d31e18.zip
op-kernel-dev-2abd9d5fa60f90cd99801687904f528156d31e18.tar.gz
usb: dwc3: ep0: Add chained TRB support
Add chained TRB support to ep0. Now TRB's can be chained just by invoking _dwc3_ep0_start_trans_ with 'chain' parameter set to true. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index d97fcfa..2feed9e 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -2687,7 +2687,7 @@ int dwc3_gadget_init(struct dwc3 *dwc)
goto err0;
}
- dwc->ep0_trb = dma_alloc_coherent(dwc->dev, sizeof(*dwc->ep0_trb),
+ dwc->ep0_trb = dma_alloc_coherent(dwc->dev, sizeof(*dwc->ep0_trb) * 2,
&dwc->ep0_trb_addr, GFP_KERNEL);
if (!dwc->ep0_trb) {
dev_err(dwc->dev, "failed to allocate ep0 trb\n");
OpenPOWER on IntegriCloud