From 32d27812ecc708c33466934c65e2f719296f01f3 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Wed, 9 Nov 2016 18:51:39 -0800 Subject: [PATCH] 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: Hemant Kumar --- drivers/usb/host/xhci-plat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 084dbbc81a6d..c025dccdd8f1 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -332,7 +332,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) @@ -346,7 +346,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;