summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx/imx8m/soc.c
diff options
context:
space:
mode:
authorLi Jun <jun.li@nxp.com>2018-10-23 10:31:21 +0800
committerYe Li <ye.li@nxp.com>2022-04-06 15:58:52 +0800
commitd115564a238ed8f61e10abe3538c65e13d79c33c (patch)
treeea782946637f12a66fd9d1e813e5ef04fda80a91 /arch/arm/mach-imx/imx8m/soc.c
parent8b98075335afe034caccde0ae7e18f8f3cd08752 (diff)
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) (cherry picked from commit c08b3c7621b63d023563d5d5bdb21813568e2c0b) (cherry picked from commit 00415e8c94da2fa916042e21d4d7884a98006779) (cherry picked from commit 1e82385a7368a3f765c8b77d8cf2bbb23bc0f858)
Diffstat (limited to 'arch/arm/mach-imx/imx8m/soc.c')
-rw-r--r--arch/arm/mach-imx/imx8m/soc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index 06f114e81d..3df7ea2128 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -852,6 +852,14 @@ static int check_mipi_dsi_nodes(void *blob)
return disable_mipi_dsi_nodes(blob);
}
+
+void board_quiesce_devices(void)
+{
+#ifdef CONFIG_USB_DWC3
+ if (is_usb_boot())
+ disconnect_from_pc();
+#endif
+}
#endif
int disable_vpu_nodes(void *blob)