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

Commit 3b4ebc10 authored by Jack Pham's avatar Jack Pham
Browse files

Revert "usb: host: skip xHCI power management upon port suspend"



This reverts commit commit 40041445 ("usb: host: skip xHCI power
management upon port suspend"). The host controller does need to clear
run/stop bit upon suspend and set it upon resume in order to properly
support controller entering/exiting low power mode.

Change-Id: I4e82a5725d24eec613846d7a5155c2f6d3b4fd3c
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 40041445
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -411,7 +411,7 @@ static int xhci_plat_runtime_suspend(struct device *dev)


	dev_dbg(dev, "xhci-plat runtime suspend\n");
	dev_dbg(dev, "xhci-plat runtime suspend\n");


	return 0;
	return xhci_suspend(xhci, true);
}
}


static int xhci_plat_runtime_resume(struct device *dev)
static int xhci_plat_runtime_resume(struct device *dev)
@@ -425,7 +425,7 @@ static int xhci_plat_runtime_resume(struct device *dev)


	dev_dbg(dev, "xhci-plat runtime resume\n");
	dev_dbg(dev, "xhci-plat runtime resume\n");


	ret = 0;
	ret = xhci_resume(xhci, false);
	pm_runtime_mark_last_busy(dev);
	pm_runtime_mark_last_busy(dev);


	return ret;
	return ret;