Loading drivers/usb/phy/phy-msm-usb.c +11 −6 Original line number Original line Diff line number Diff line Loading @@ -1638,12 +1638,14 @@ static int msm_otg_suspend(struct msm_otg *motg) atomic_set(&motg->in_lpm, 1); atomic_set(&motg->in_lpm, 1); if (host_bus_suspend || device_bus_suspend) { /* Enable ASYNC IRQ during LPM */ /* Enable ASYNC IRQ during LPM */ enable_irq(motg->async_irq); enable_irq(motg->async_irq); enable_irq(motg->irq); } if (motg->phy_irq) if (motg->phy_irq) enable_irq(motg->phy_irq); enable_irq(motg->phy_irq); enable_irq(motg->irq); pm_relax(&motg->pdev->dev); pm_relax(&motg->pdev->dev); dev_dbg(phy->dev, "LPM caps = %lu flags = %lu\n", dev_dbg(phy->dev, "LPM caps = %lu flags = %lu\n", Loading Loading @@ -1688,10 +1690,12 @@ static int msm_otg_resume(struct msm_otg *motg) return 0; return 0; } } disable_irq(motg->irq); pm_stay_awake(&motg->pdev->dev); if (motg->phy_irq) if (motg->phy_irq) disable_irq(motg->phy_irq); disable_irq(motg->phy_irq); pm_stay_awake(&motg->pdev->dev); if (motg->host_bus_suspend || motg->device_bus_suspend) disable_irq(motg->irq); /* /* * If we are resuming from the device bus suspend, restore * If we are resuming from the device bus suspend, restore Loading Loading @@ -1814,6 +1818,7 @@ static int msm_otg_resume(struct msm_otg *motg) enable_irq(motg->irq); enable_irq(motg->irq); /* Enable ASYNC_IRQ only during LPM */ /* Enable ASYNC_IRQ only during LPM */ if (motg->host_bus_suspend || motg->device_bus_suspend) disable_irq(motg->async_irq); disable_irq(motg->async_irq); if (motg->phy_irq_pending) { if (motg->phy_irq_pending) { Loading Loading
drivers/usb/phy/phy-msm-usb.c +11 −6 Original line number Original line Diff line number Diff line Loading @@ -1638,12 +1638,14 @@ static int msm_otg_suspend(struct msm_otg *motg) atomic_set(&motg->in_lpm, 1); atomic_set(&motg->in_lpm, 1); if (host_bus_suspend || device_bus_suspend) { /* Enable ASYNC IRQ during LPM */ /* Enable ASYNC IRQ during LPM */ enable_irq(motg->async_irq); enable_irq(motg->async_irq); enable_irq(motg->irq); } if (motg->phy_irq) if (motg->phy_irq) enable_irq(motg->phy_irq); enable_irq(motg->phy_irq); enable_irq(motg->irq); pm_relax(&motg->pdev->dev); pm_relax(&motg->pdev->dev); dev_dbg(phy->dev, "LPM caps = %lu flags = %lu\n", dev_dbg(phy->dev, "LPM caps = %lu flags = %lu\n", Loading Loading @@ -1688,10 +1690,12 @@ static int msm_otg_resume(struct msm_otg *motg) return 0; return 0; } } disable_irq(motg->irq); pm_stay_awake(&motg->pdev->dev); if (motg->phy_irq) if (motg->phy_irq) disable_irq(motg->phy_irq); disable_irq(motg->phy_irq); pm_stay_awake(&motg->pdev->dev); if (motg->host_bus_suspend || motg->device_bus_suspend) disable_irq(motg->irq); /* /* * If we are resuming from the device bus suspend, restore * If we are resuming from the device bus suspend, restore Loading Loading @@ -1814,6 +1818,7 @@ static int msm_otg_resume(struct msm_otg *motg) enable_irq(motg->irq); enable_irq(motg->irq); /* Enable ASYNC_IRQ only during LPM */ /* Enable ASYNC_IRQ only during LPM */ if (motg->host_bus_suspend || motg->device_bus_suspend) disable_irq(motg->async_irq); disable_irq(motg->async_irq); if (motg->phy_irq_pending) { if (motg->phy_irq_pending) { Loading