提交 9c4567fa 编写于 作者: B Boris Krasnovskiy 提交者: Greg Kroah-Hartman

USB: host: ohci-at91: completely shutdown the controller in at91_stop_hc()

When removing the ohci-at91 module, the fact of not running complete shutdown
of all the ports was keeping additional analog cells consuming power for no
reason.
Doing Reset (OHCI_HCR) to HcCommandStatus register is the way to go, but using
the OHCI controller shutdown procedure is just perfect for this.
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-2-nicolas.ferre@microchip.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 5d88ef9e
...@@ -123,7 +123,7 @@ static void at91_stop_hc(struct platform_device *pdev) ...@@ -123,7 +123,7 @@ static void at91_stop_hc(struct platform_device *pdev)
/* /*
* Put the USB host controller into reset. * Put the USB host controller into reset.
*/ */
writel(0, &regs->control); usb_hcd_platform_shutdown(pdev);
/* /*
* Stop the USB clocks. * Stop the USB clocks.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册