diff options
author | Felipe Balbi <balbi@ti.com> | 2012-04-25 07:13:09 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-05-02 02:43:08 -0400 |
commit | 7ed6d227c3d29e156f7affbad4d4679d1e409ef2 (patch) | |
tree | ffdc27c33b21a647072fb48f08afb98c996b7fda /drivers/usb/dwc3 | |
parent | 865e09e71622f92a46b47019500632bf5bc010a8 (diff) |
usb: dwc3: gadget: increase setup buffer size
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>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 158d396d0d0c..49ee83ed68b7 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c | |||
@@ -2308,8 +2308,7 @@ int __devinit dwc3_gadget_init(struct dwc3 *dwc) | |||
2308 | goto err1; | 2308 | goto err1; |
2309 | } | 2309 | } |
2310 | 2310 | ||
2311 | dwc->setup_buf = kzalloc(sizeof(*dwc->setup_buf) * 2, | 2311 | dwc->setup_buf = kzalloc(512, GFP_KERNEL); |
2312 | GFP_KERNEL); | ||
2313 | if (!dwc->setup_buf) { | 2312 | if (!dwc->setup_buf) { |
2314 | dev_err(dwc->dev, "failed to allocate setup buffer\n"); | 2313 | dev_err(dwc->dev, "failed to allocate setup buffer\n"); |
2315 | ret = -ENOMEM; | 2314 | ret = -ENOMEM; |