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

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

Merge "usb: ehci-msm: Don't call ehci_suspend during system suspend"

parents dd74929d af602183
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
/* ehci-msm.c - HSUSB Host Controller Driver Implementation
 *
 * Copyright (c) 2008-2013, The Linux Foundation. All rights reserved.
 * Copyright (c) 2008-2014, The Linux Foundation. All rights reserved.
 *
 * Partly derived from ehci-fsl.c and ehci-hcd.c
 * Copyright (c) 2000-2004 by David Brownell
@@ -206,18 +206,12 @@ static int ehci_msm_runtime_resume(struct device *dev)
static int ehci_msm_pm_suspend(struct device *dev)
{
	struct usb_hcd *hcd = dev_get_drvdata(dev);
	bool do_wakeup = device_may_wakeup(dev);
	int ret;

	dev_dbg(dev, "ehci-msm PM suspend\n");

	if (!hcd->rh_registered)
		return 0;

	ret = ehci_suspend(hcd, do_wakeup);
	if (ret)
		return ret;

	return usb_phy_set_suspend(phy, 1);
}