diff options
-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); |