public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: ohci-at91: Fix the unhandle interrupt when resume
@ 2023-06-22  2:57 Guiting Shen
  2023-06-22 14:29 ` Alan Stern
  0 siblings, 1 reply; 6+ messages in thread
From: Guiting Shen @ 2023-06-22  2:57 UTC (permalink / raw)
  To: stern, gregkh, nicolas.ferre, alexandre.belloni, claudiu.beznea
  Cc: linux-usb, linux-arm-kernel, linux-kernel, Guiting Shen

The ohci_hcd_at91_drv_suspend() sets ohci->rh_state to OHCI_RH_HALTED when
suspend which will let the ohci_irq() skip the interrupt after resume. And
nobody to handle this interrupt.

Set the ohci->rh_state to OHCI_RH_SUSPEND instead of OHCI_RH_HALTED when
suspend to fix it.

Signed-off-by: Guiting Shen <aarongt.shen@gmail.com>
---
 drivers/usb/host/ohci-at91.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
index b9ce8d80f20b..7a970e573668 100644
--- a/drivers/usb/host/ohci-at91.c
+++ b/drivers/usb/host/ohci-at91.c
@@ -645,7 +645,7 @@ ohci_hcd_at91_drv_suspend(struct device *dev)
 	 * REVISIT: some boards will be able to turn VBUS off...
 	 */
 	if (!ohci_at91->wakeup) {
-		ohci->rh_state = OHCI_RH_HALTED;
+		ohci->rh_state = OHCI_RH_SUSPENDED;
 
 		/* flush the writes */
 		(void) ohci_readl (ohci, &ohci->regs->control);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-25 13:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-22  2:57 [PATCH] usb: ohci-at91: Fix the unhandle interrupt when resume Guiting Shen
2023-06-22 14:29 ` Alan Stern
2023-06-23  3:44   ` Guiting Shen
2023-06-23 15:52     ` Alan Stern
2023-06-25  4:01       ` Guiting Shen
2023-06-25 13:57         ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox