Skip to content

Commit

Permalink
usb: dwc3: gadget: increase setup buffer size
Browse files Browse the repository at this point in the history
We want to re-use that buffer for other USB
requests, so let's increase it to biggest
wMaxPacketSize for ep0 so it works for everything
we have in mind.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed May 2, 2012
1 parent 865e09e commit 7ed6d22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -2308,8 +2308,7 @@ int __devinit dwc3_gadget_init(struct dwc3 *dwc)
goto err1;
}

dwc->setup_buf = kzalloc(sizeof(*dwc->setup_buf) * 2,
GFP_KERNEL);
dwc->setup_buf = kzalloc(512, GFP_KERNEL);
if (!dwc->setup_buf) {
dev_err(dwc->dev, "failed to allocate setup buffer\n");
ret = -ENOMEM;
Expand Down

0 comments on commit 7ed6d22

Please sign in to comment.