We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e395cb commit 0b26e82Copy full SHA for 0b26e82
drivers/usb/dwc2/core_intr.c
@@ -533,11 +533,14 @@ static void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg)
533
__func__);
534
}
535
skip_power_saving:
536
- /* Raspberry Pi seems to call the suspend interrupt on gadget disconnect, so instead of setting state to suspend set to not attached */
537
-
538
- hsotg->lx_state = DWC2_L3;
+ /*
+ * Change to L2 (suspend) state before releasing
+ * spinlock
539
+ */
540
+ hsotg->lx_state = DWC2_L2;
541
- usb_gadget_set_state(&hsotg->gadget, USB_STATE_NOTATTACHED);
542
+ /* Call gadget suspend callback */
543
+ call_gadget(hsotg, suspend);
544
545
} else {
546
if (hsotg->op_state == OTG_STATE_A_PERIPHERAL) {
0 commit comments