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

Commit 6c33feb8 authored by Manu Gautam's avatar Manu Gautam
Browse files

usb: gadget: ci13xxx: Update usb_eps' maxpacket_limit



Newly added maxpacket_limit field in usb_ep must be
initialized by UDC drivers to set maximum packet size
limit for endpoint using usb_ep_set_maxpacket_limit().
If maxpacket_limit is not specified then usb_ep_autoconfig
fails while checking wMaxPacketSize against maxpacket_limit
for ISOC and interrupt endpoints.

Change-Id: I3da12df7f901494149a1c2ea5ece9fe8e15b3672
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 08a5dba0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3904,8 +3904,8 @@ static int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev,

			mEp->ep.name      = mEp->name;
			mEp->ep.ops       = &usb_ep_ops;
			mEp->ep.maxpacket =
				k ? USHRT_MAX : CTRL_PAYLOAD_MAX;
			usb_ep_set_maxpacket_limit(&mEp->ep,
				k ? USHRT_MAX : CTRL_PAYLOAD_MAX);

			INIT_LIST_HEAD(&mEp->qh.queue);
			mEp->qh.ptr = dma_pool_alloc(udc->qh_pool, GFP_KERNEL,