diff options
author | Hyong Bin Kim <hyongbink@nvidia.com> | 2014-03-14 18:20:49 +0900 |
---|---|---|
committer | Harry Hong <hhong@nvidia.com> | 2014-03-16 17:38:43 -0700 |
commit | 43d2636bc5ef882fef2cb34277cc291beef0039e (patch) | |
tree | b101170dbd530c4e423019f31944b4afcbb89dd8 | |
parent | 28ef3a29614fac52a75bddc341eb3b15e3585e6e (diff) |
usb: phy: tegra:set suspend flag true while bootup
Set the suspended flag to true during bootup. With
this vbus/id notifications will be ignored until
gadget driver is ready.
Bug 1473703
Change-Id: If20245f8056ec7da8f4d9a1fe463378992fff6ca
Signed-off-by: Rakesh Bodla <rbodla@nvidia.com>
Signed-off-by: Hyong Bin Kim <hyongbink@nvidia.com>
Reviewed-on: http://git-master/r/381971
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harry Hong <hhong@nvidia.com>
-rw-r--r-- | drivers/usb/otg/tegra-otg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c index b83b463f9db7..bc9a7edeb04f 100644 --- a/drivers/usb/otg/tegra-otg.c +++ b/drivers/usb/otg/tegra-otg.c @@ -448,6 +448,7 @@ static int tegra_otg_set_peripheral(struct usb_otg *otg, otg->gadget = gadget; val = enable_interrupt(tegra, true); + tegra->suspended = false; if ((val & USB_ID_STATUS) && (val & USB_VBUS_STATUS) && !tegra->support_pmu_vbus) @@ -603,7 +604,7 @@ static int tegra_otg_probe(struct platform_device *pdev) platform_set_drvdata(pdev, tegra); tegra_clone = tegra; tegra->interrupt_mode = true; - tegra->suspended = false; + tegra->suspended = true; tegra->turn_off_vbus_on_lp0 = pdata->ehci_pdata->u_data.host.turn_off_vbus_on_lp0; tegra->clk = clk_get(&pdev->dev, NULL); |