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

Commit 40041445 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: host: skip xHCI power management upon port suspend



xHC gets powered down when host mode is stopped. xHCI power
management is intended for ACPI based power management which
is defined for PC architecture. Hence there is no need to
clear run/stop bit and save the runtime register states upon
port suspend.

Change-Id: I9d0b31021e7c47084cd92c8c70e17cff3d057655
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 79d42bd7
Loading
Loading
Loading
Loading
+2 −2
Original line number 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");

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

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");

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

	return ret;