Skip to content
Browse files

add host stop back as picasso doesnt mount usb to phys

  • Loading branch information...
1 parent a131e61 commit 6993296c6c89b29f51c1838ff0bc7dd72021fc2f @getitnowmarketing committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 drivers/usb/otg/tegra-otg.c
View
6 drivers/usb/otg/tegra-otg.c
@@ -408,7 +408,11 @@ 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_A_HOST) {
+ tegra_stop_host(tegra_otg);
+ otg->state = OTG_STATE_A_SUSPEND;
+
+ } else if (from == OTG_STATE_B_PERIPHERAL && otg->gadget) {
usb_gadget_vbus_disconnect(otg->gadget);
otg->state = OTG_STATE_A_SUSPEND;

0 comments on commit 6993296

Please sign in to comment.
Something went wrong with that request. Please try again.