提交 87e8dfa6 编写于 作者: B Boris Krasnovskiy 提交者: Greg Kroah-Hartman

USB: host: ohci-at91: resume: balance the clock start call

There is a clock enable counter run away problem in resume ohci_at91. Code
enables clock that was never disabled in case of non wakeup interface. That
would make clock unstoppable in future.
Use proper alternative to start clocks only if they were stopped before.
Signed-off-by: NBoris Krasnovskiy <Boris.Krasnovskiy@lairdconnect.com>
Signed-off-by: NNicolas Ferre <nicolas.ferre@microchip.com>
Acked-by: NAlan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20190911064154.28633-4-nicolas.ferre@microchip.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 a3bf4d68
......@@ -643,7 +643,7 @@ ohci_hcd_at91_drv_resume(struct device *dev)
if (ohci_at91->wakeup)
disable_irq_wake(hcd->irq);
else
at91_start_clock(ohci_at91);
ohci_resume(hcd, false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册