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

Commit fee03581 authored by Can Guo's avatar Can Guo
Browse files

phy: qcom-ufs: set no runtime PM callbacks flag



UFS PHY power management is managed by its parent (UFS host controller)
hence set the no runtime PM callbacks flag on UFS PHY device to
avoid any accidental attempt to call the PM callbacks for PHY device.

Change-Id: I06e6b140a98233e30d406754f0cdcdd27c834357
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent d44fa178
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -123,6 +123,14 @@ struct phy *ufs_qcom_phy_generic_probe(struct platform_device *pdev,
		goto out;
	}

	/*
	 * UFS PHY power management is managed by its parent (UFS host
	 * controller) hence set the no runtime PM callbacks flag
	 * on UFS PHY device to avoid any accidental attempt to call the
	 * PM callbacks for PHY device.
	 */
	pm_runtime_no_callbacks(&generic_phy->dev);

	common_cfg->phy_spec_ops = phy_spec_ops;
	common_cfg->dev = dev;