Commit 27d6b4cf3d8d6701aeb800b307ef52afd18540ba

Authored by Li Jun
1 parent 5cf826345d

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>

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

arch/arm/mach-imx/imx8m/soc.c
... ... @@ -441,6 +441,14 @@
441 441 }
442 442  
443 443 }
  444 +
  445 +void board_quiesce_devices(void)
  446 +{
  447 +#ifdef CONFIG_USB_DWC3
  448 + if (is_usb_boot())
  449 + disconnect_from_pc();
  450 +#endif
  451 +}
444 452 #endif
445 453  
446 454 static int disable_vpu_nodes(void *blob)