瀏覽代碼

[PATCH] USB: ehci suspend must stop timer

Force the EHCI watchdog timer off during suspend, in case for some
reason it was still running after the root hub suspended.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
David Brownell 20 年之前
父節點
當前提交
4756ae5b52
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/usb/host/ehci-hub.c

+ 1 - 0
drivers/usb/host/ehci-hub.c

@@ -72,6 +72,7 @@ static int ehci_hub_suspend (struct usb_hcd *hcd)
 	}
 
 	/* turn off now-idle HC */
+	del_timer_sync (&ehci->watchdog);
 	ehci_halt (ehci);
 	hcd->state = HC_STATE_SUSPENDED;