]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
usb: dwc3: gadget: Check MaxPacketSize from descriptor
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Sat, 28 Jul 2018 01:52:41 +0000 (18:52 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 30 Jul 2018 07:39:20 +0000 (10:39 +0300)
commit4ea438da76f4277627347147f6f7004affae07b9
treef113b949e10d06e8be0304986e8f2e29dbd44fa6
parentf8781d55099026061f8b03f2636c0b192f5093e2
usb: dwc3: gadget: Check MaxPacketSize from descriptor

endpoint->maxpacket is not updated after setting the
usb_set_maxpacket_limit() on endpoint enable. The MaxPacketSize can be
different than the endpoint->maxpacket_limit.

DWC3 has been consistently using MaxPacketSize from the endpoint's
descriptor, so let's keep it consistent and use the MaxPacketSize from
the endpoint's descriptor instead.

Signed-off-by: Thinh Nguyen <thinhn@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c