Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ed6d227 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent 865e09e7
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -2308,8 +2308,7 @@ int __devinit dwc3_gadget_init(struct dwc3 *dwc)
		goto err1;
		goto err1;
	}
	}


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