mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
Revert "usb/dwc2: Set correct state on gadget disconnect"
This reverts commit c3974850cc.
See: https://github.com/raspberrypi/linux/issues/3885
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
This commit is contained in:
@@ -533,11 +533,14 @@ static void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg)
|
||||
__func__);
|
||||
}
|
||||
skip_power_saving:
|
||||
/* Raspberry Pi seems to call the suspend interrupt on gadget disconnect, so instead of setting state to suspend set to not attached */
|
||||
/*
|
||||
* Change to L2 (suspend) state before releasing
|
||||
* spinlock
|
||||
*/
|
||||
hsotg->lx_state = DWC2_L2;
|
||||
|
||||
hsotg->lx_state = DWC2_L3;
|
||||
|
||||
usb_gadget_set_state(&hsotg->gadget, USB_STATE_NOTATTACHED);
|
||||
/* Call gadget suspend callback */
|
||||
call_gadget(hsotg, suspend);
|
||||
}
|
||||
} else {
|
||||
if (hsotg->op_state == OTG_STATE_A_PERIPHERAL) {
|
||||
|
||||
Reference in New Issue
Block a user