hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
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 }