diff options
Diffstat (limited to 'drivers/usb/otg')
-rw-r--r-- | drivers/usb/otg/tegra-otg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c index e24d5775fbc1..f895c4a91e7f 100644 --- a/drivers/usb/otg/tegra-otg.c +++ b/drivers/usb/otg/tegra-otg.c @@ -389,9 +389,10 @@ static int tegra_otg_suspend(struct device *dev) tegra_otg->intr_reg_data = readl(tegra_otg->regs + USB_PHY_WAKEUP); clk_disable(tegra_otg->clk); - if (from == OTG_STATE_B_PERIPHERAL && otg->gadget) + if (from == OTG_STATE_B_PERIPHERAL && otg->gadget) { usb_gadget_vbus_disconnect(otg->gadget); - + otg->state = OTG_STATE_A_SUSPEND; + } tegra_otg_disable_clk(); return 0; } |