From 27cb9ee66bccabea702c10d909788cac7ebe306e Mon Sep 17 00:00:00 2001 From: Ye Li Date: Thu, 21 May 2020 03:26:34 -0700 Subject: [PATCH] MLK-24079 imx8mp: Disable DWC3 gadget before UUU jumping to kernel When UUU runs acmd command to boot into kernel, the fastboot never get chance to exit, so the usb gadget is not disconnected. This causes kernel USB gadget failed to work. Re-use iMX8MQ implementation to disconnect DWC3 gadget before jumping to kernel. Signed-off-by: Ye Li Reviewed-by: Jun Li --- arch/arm/mach-imx/imx8m/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index ea29c18..e71b375 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -763,6 +763,7 @@ static int check_mipi_dsi_nodes(void *blob) } } +#endif void board_quiesce_devices(void) { @@ -771,7 +772,6 @@ void board_quiesce_devices(void) disconnect_from_pc(); #endif } -#endif int disable_vpu_nodes(void *blob) { -- 1.9.1