From: Benoit Goby Date: Wed, 5 Jan 2011 02:59:42 +0000 (-0800) Subject: usb: host: tegra: Fix enumeration after lp0 X-Git-Tag: firefly_0821_release~9833^2~74^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a2bd4d7ca0de4d7781db7eceff152b13af077b6;p=firefly-linux-kernel-4.4.55.git usb: host: tegra: Fix enumeration after lp0 Fix enumeration when a device is plugged while the host is in lp0 state. Change-Id: Idb491f347172daac8a5603ed098b422b15cc534e Signed-off-by: Benoit Goby --- diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 0f83b5e368da..262bbb01228b 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -259,8 +259,12 @@ static int tegra_usb_resume(struct usb_hcd *hcd) set_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags); tegra_ehci_power_up(ehci_to_hcd(tegra->ehci)); - if (!context->valid) + if (!context->valid) { + /* Wait for the phy to detect new devices + * before we restart the controller */ + msleep(10); goto restart; + } /* Restore register context */ writel(TEGRA_USB_USBMODE_HOST, &hw->reserved[19]);