[PATCH 6.17 305/507] usb: dwc2: fix hang during shutdown if set as peripheral