Change have_hcd variable to remove/suspend host driver on completion of otg initialization for otg auto detect.
Signed-off-by: Ramneek Mehresh <ramneek.mehr...@freescale.com> Reviewed-by: Li Yang-R58472 <le...@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <aflem...@freescale.com> Tested-by: Fleming Andrew-AFLEMING <aflem...@freescale.com> --- drivers/usb/host/ehci-fsl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 81e4bf5..daca957 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -189,6 +189,8 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev) retval = -ENODEV; goto err2; } + + ehci_fsl->have_hcd = 1; } #endif return retval; -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/