summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-qcom-ufs-qmp-14nm.c
diff options
context:
space:
mode:
authorVivek Gautam2016-11-08 11:07:49 +0100
committerMartin K. Petersen2016-11-09 00:05:45 +0100
commit3d4640f1cf84c6f40af356d6682205bf8d491731 (patch)
tree293a42150895803969234394a22189a29b55b323 /drivers/phy/phy-qcom-ufs-qmp-14nm.c
parentscsi: ufs-qcom: phy/hcd: Refactoring phy clock handling (diff)
downloadkernel-qcow2-linux-3d4640f1cf84c6f40af356d6682205bf8d491731.tar.gz
kernel-qcow2-linux-3d4640f1cf84c6f40af356d6682205bf8d491731.tar.xz
kernel-qcow2-linux-3d4640f1cf84c6f40af356d6682205bf8d491731.zip
phy: qcom-ufs: Remove common layer phy exit callback
The common layer phy exit callback ufs_qcom_phy_exit() calls phy_power_off() that has no meaning when phy_power_off() callback is already registered with the phy provider and the consumer makes use of the same. Instead, add a no-op specific phy_exit() callback for now to add the exit sequence at a later point. Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org> Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/phy/phy-qcom-ufs-qmp-14nm.c')
-rw-r--r--drivers/phy/phy-qcom-ufs-qmp-14nm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/phy/phy-qcom-ufs-qmp-14nm.c b/drivers/phy/phy-qcom-ufs-qmp-14nm.c
index ae74614baeb2..c71c84734916 100644
--- a/drivers/phy/phy-qcom-ufs-qmp-14nm.c
+++ b/drivers/phy/phy-qcom-ufs-qmp-14nm.c
@@ -47,6 +47,11 @@ static int ufs_qcom_phy_qmp_14nm_init(struct phy *generic_phy)
return 0;
}
+static int ufs_qcom_phy_qmp_14nm_exit(struct phy *generic_phy)
+{
+ return 0;
+}
+
static
void ufs_qcom_phy_qmp_14nm_power_control(struct ufs_qcom_phy *phy, bool val)
{
@@ -94,7 +99,7 @@ static int ufs_qcom_phy_qmp_14nm_is_pcs_ready(struct ufs_qcom_phy *phy_common)
static const struct phy_ops ufs_qcom_phy_qmp_14nm_phy_ops = {
.init = ufs_qcom_phy_qmp_14nm_init,
- .exit = ufs_qcom_phy_exit,
+ .exit = ufs_qcom_phy_qmp_14nm_exit,
.power_on = ufs_qcom_phy_power_on,
.power_off = ufs_qcom_phy_power_off,
.owner = THIS_MODULE,