From fee035811dffba38478632388f52fe9ccc0cf724 Mon Sep 17 00:00:00 2001 From: Can Guo Date: Tue, 20 Aug 2019 00:57:28 -0700 Subject: [PATCH] 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 Signed-off-by: Can Guo --- drivers/phy/qualcomm/phy-qcom-ufs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-ufs.c b/drivers/phy/qualcomm/phy-qcom-ufs.c index a83d5eee5392..e1dde9740069 100644 --- a/drivers/phy/qualcomm/phy-qcom-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-ufs.c @@ -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;