Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30b03075 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: phy: Disable IRQs before resetting clocks"

parents bd2ef600 4941b289
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -746,12 +746,24 @@ static int msm_otg_reset(struct usb_phy *phy)
	}
	}
	motg->reset_counter++;
	motg->reset_counter++;


	disable_irq(motg->irq);
	if (motg->phy_irq)
		disable_irq(motg->phy_irq);

	ret = msm_otg_phy_reset(motg);
	ret = msm_otg_phy_reset(motg);
	if (ret) {
	if (ret) {
		dev_err(phy->dev, "phy_reset failed\n");
		dev_err(phy->dev, "phy_reset failed\n");
		if (motg->phy_irq)
			enable_irq(motg->phy_irq);

		enable_irq(motg->irq);
		return ret;
		return ret;
	}
	}


	if (motg->phy_irq)
		enable_irq(motg->phy_irq);

	enable_irq(motg->irq);
	ret = msm_otg_link_reset(motg);
	ret = msm_otg_link_reset(motg);
	if (ret) {
	if (ret) {
		dev_err(phy->dev, "link reset failed\n");
		dev_err(phy->dev, "link reset failed\n");