]> git.baikalelectronics.ru Git - uboot.git/commit
usb: gadget: dwc2_udc_otg: set ep's desc during enable/disable
authorGary Bisson <gary.bisson@boundarydevices.com>
Thu, 6 Jan 2022 15:02:08 +0000 (16:02 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 8 Jan 2022 16:16:03 +0000 (11:16 -0500)
commit54d3977b8b12a312b6259574bbb0fda50bed81a0
tree1d194d76de571e114fa4863911e8916e8ad070d4
parented83f529edefc0a485ffe582d5abd822b7c9318a
usb: gadget: dwc2_udc_otg: set ep's desc during enable/disable

Fastboot support has been broken on platforms using dwc2 controller
since the gadget gets its max packet size from it.
This patch is the equivalent of 76d10b73415 which fixed the same issue
but for the chipidea controller.

Fixes: cc6e77f5791 ("usb: gadget: fastboot: use correct max packet size")
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
drivers/usb/gadget/dwc2_udc_otg.c