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: Boris Krasnovskiy <[email protected]>
Signed-off-by: Nicolas Ferre <[email protected]>
Acked-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Boris Krasnovskiy
2019-10-04 14:16:53 +02:00
committed by Greg Kroah-Hartman
parent 5d88ef9eea
commit 9c4567fa0a
+1 -1
View File
@@ -123,7 +123,7 @@ static void at91_stop_hc(struct platform_device *pdev)
/*
* Put the USB host controller into reset.
*/
writel(0, &regs->control);
usb_hcd_platform_shutdown(pdev);
/*
* Stop the USB clocks.