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

Commit 62ddbe2d authored by Hemant Kumar's avatar Hemant Kumar
Browse files

dwc3-msm: Add support to disable device mode PM runtime



High speed phy suspend is not supported on emulation target.
Hence add support to keep PM runtime disabled which prevents
phy to enter low power mode.

Change-Id: Iaa21ece3a58d4da6b03699bd068d01f2fba85343
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 5fade566
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@ Optional properties :
- qcom,vbus-present: Indicates that there is no VBUS indication from PMIC. Assume VBUS is
  present if this property is defined.
- qcom,ext-hub-reset-gpio: This corresponds to gpio which is used for HUB reset.
- qcom,disable-dev-mode-pm: If present, it disables PM runtime functionality for device mode.
Sub nodes:
- Sub node for "DWC3- USB3 controller".
  This sub node is required property for device node. The properties of this subnode
+3 −0
Original line number Diff line number Diff line
@@ -2463,6 +2463,9 @@ static int dwc3_msm_probe(struct platform_device *pdev)
	device_init_wakeup(mdwc->dev, 1);
	pm_stay_awake(mdwc->dev);

	if (of_property_read_bool(node, "qcom,disable-dev-mode-pm"))
		pm_runtime_get_noresume(mdwc->dev);

	schedule_delayed_work(&mdwc->sm_work, 0);

	/* Update initial ID state */