summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhash Jadavani <subhashj@codeaurora.org>2017-03-14 13:02:25 -0700
committerSubhash Jadavani <subhashj@codeaurora.org>2017-03-20 14:25:07 -0700
commitbbbf454942d755befde865d6c92b985b76cde9f0 (patch)
treeeba96295d37537a13145d46934de055038a578ab
parent687a4eb82be5905f5400678dcaff4e98dad72e3c (diff)
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: Subhash Jadavani <subhashj@codeaurora.org>
-rw-r--r--drivers/phy/phy-qcom-ufs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/phy/phy-qcom-ufs.c b/drivers/phy/phy-qcom-ufs.c
index c3cb57ed6083..1e3e175d3e8d 100644
--- a/drivers/phy/phy-qcom-ufs.c
+++ b/drivers/phy/phy-qcom-ufs.c
@@ -113,6 +113,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 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;