summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2017-09-10 22:31:03 -0500
committerYe Li <ye.li@nxp.com>2017-09-14 20:51:56 -0500
commit6c0fd30e444d23d71c2cfc35924f3d23d72c0735 (patch)
tree7ade5f82e6a8d8737f98782d98130463c282c8ab
parentaa20426dd0931d3fbd18e4de8f928e0a89b87770 (diff)
MLK-16431-1 xhci-imx8: call board_usb_cleanup when xhci stop
Call the board_usb_cleanup in xhci_imx8_remove (DM) and xhci_hcd_stop (non-DM) to execute some board level usb stop in cc logic and ss mux. Signed-off-by: Ye Li <ye.li@nxp.com>
-rw-r--r--drivers/usb/host/xhci-imx8.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-imx8.c b/drivers/usb/host/xhci-imx8.c
index 5856a7ef37..c15dfbd3b0 100644
--- a/drivers/usb/host/xhci-imx8.c
+++ b/drivers/usb/host/xhci-imx8.c
@@ -209,6 +209,8 @@ static int xhci_imx8_remove(struct udevice *dev)
if (!ret)
imx8_xhci_reset();
+ board_usb_cleanup(dev->seq, USB_INIT_HOST);
+
return ret;
}
@@ -262,5 +264,7 @@ int xhci_hcd_init(int index, struct xhci_hccr **ret_hccr,
void xhci_hcd_stop(int index)
{
imx8_xhci_reset();
+
+ board_usb_cleanup(index, USB_INIT_HOST);
}
#endif