Browse Source

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>
(cherry picked from commit 6c0fd30e44)
Ye Li 3 years ago
parent
commit
ede784bb92
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      drivers/usb/host/xhci-imx8.c

+ 4
- 0
drivers/usb/host/xhci-imx8.c View File

@ -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

Loading…
Cancel
Save