MLK-16221-5 usb: cdns3: gadget: fix wMaxPacketSize for ep0
authorPeter Chen <peter.chen@nxp.com>
Mon, 21 Aug 2017 09:43:37 +0000 (17:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:26 +0000 (15:38 -0500)
commitf640ce0295bfd1d7bc6eb1486b9dce87682bb416
tree228c46e3dbf898f9ce1c6aae3359c336b06e021c
parent052ec59dcead6bb1a78a832c1918d0a69b35b6b7
MLK-16221-5 usb: cdns3: gadget: fix wMaxPacketSize for ep0

We should set wMaxPacketSize according to connection speed,
and add missing ep0 descriptor.

Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/gadget.c