Commit c08b3c7621b63d023563d5d5bdb21813568e2c0b

Authored by Li Jun
Committed by Ye Li
1 parent 45601e1200

MLK-19995 imx8mq: disconnect usb from host for uuu

Stop the usb device controller before enter kernel, this is required
to make kernel can properly init usb controller with it's in stopped
state.

Suggested-by: Ye.Li <ye.li@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit 27d6b4cf3d8d6701aeb800b307ef52afd18540ba)
(cherry picked from commit dfcd809622bd994937724dc8c3252c16a2131056)

Showing 1 changed file with 8 additions and 0 deletions Side-by-side Diff

arch/arm/mach-imx/imx8m/soc.c
... ... @@ -564,6 +564,14 @@
564 564 }
565 565  
566 566 }
  567 +
  568 +void board_quiesce_devices(void)
  569 +{
  570 +#ifdef CONFIG_USB_DWC3
  571 + if (is_usb_boot())
  572 + disconnect_from_pc();
  573 +#endif
  574 +}
567 575 #endif
568 576  
569 577 int disable_vpu_nodes(void *blob)