forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/usb/host/ohci-at91.c
....@@ -647,7 +647,13 @@
647647 else
648648 at91_start_clock(ohci_at91);
649649
650
- ohci_resume(hcd, false);
650
+ /*
651
+ * According to the comment in ohci_hcd_at91_drv_suspend()
652
+ * we need to do a reset if the 48Mhz clock was stopped,
653
+ * that is, if ohci_at91->wakeup is clear. Tell ohci_resume()
654
+ * to reset in this case by setting its "hibernated" flag.
655
+ */
656
+ ohci_resume(hcd, !ohci_at91->wakeup);
651657
652658 return 0;
653659 }