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

Commit f27c9680 authored by Manu Gautam's avatar Manu Gautam Committed by Gerrit - the friendly Code Review server
Browse files

usb: ehci-msm-hsic: Disable HSIC on driver unbind



Keeping HSIC enabled in PHY register increases power
leakage as long as PHY is powered.
Disable HSIC as part of driver_remove to minimize leakage
from HSIC PHY if not in use.

Change-Id: Ic246b972424c1e1be9dc8292b804e5be0578db64
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 42aaa865
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2318,6 +2318,9 @@ static int ehci_hsic_msm_remove(struct platform_device *pdev)
	/* Remove the HCD prior to releasing our resources. */
	usb_remove_hcd(hcd);

	/* Disable HSIC mode in HSIC_CFG register */
	ulpi_write(mehci, 0x0, 0x30);

	if (pdata && pdata->standalone_latency)
		pm_qos_remove_request(&mehci->pm_qos_req_dma);