aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/phy
diff options
context:
space:
mode:
authorVivek Gautam <vivek.gautam@codeaurora.org>2016-11-08 05:07:48 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2016-11-08 18:05:45 -0500
commitfeb3d79800ece19c18b979c5edd1c28755f59d07 (patch)
treebee58426ef46d18ceef90ad7c056b64d294ae39a /include/linux/phy
parent9c7ce698ba41eec51b7d3e6a68c29fca26a32793 (diff)
scsi: ufs-qcom: phy/hcd: Refactoring phy clock handling
Add phy clock enable code to phy_power_on/off callbacks, and remove explicit calls to enable these phy clocks from the ufs-qcom hcd driver. 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 'include/linux/phy')
-rw-r--r--include/linux/phy/phy-qcom-ufs.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/linux/phy/phy-qcom-ufs.h b/include/linux/phy/phy-qcom-ufs.h
index 9d18e9f948e9..35c070ea6ea3 100644
--- a/include/linux/phy/phy-qcom-ufs.h
+++ b/include/linux/phy/phy-qcom-ufs.h
@@ -18,22 +18,6 @@
18#include "phy.h" 18#include "phy.h"
19 19
20/** 20/**
21 * ufs_qcom_phy_enable_ref_clk() - Enable the phy
22 * ref clock.
23 * @phy: reference to a generic phy
24 *
25 * returns 0 for success, and non-zero for error.
26 */
27int ufs_qcom_phy_enable_ref_clk(struct phy *phy);
28
29/**
30 * ufs_qcom_phy_disable_ref_clk() - Disable the phy
31 * ref clock.
32 * @phy: reference to a generic phy.
33 */
34void ufs_qcom_phy_disable_ref_clk(struct phy *phy);
35
36/**
37 * ufs_qcom_phy_enable_dev_ref_clk() - Enable the device 21 * ufs_qcom_phy_enable_dev_ref_clk() - Enable the device
38 * ref clock. 22 * ref clock.
39 * @phy: reference to a generic phy. 23 * @phy: reference to a generic phy.
@@ -47,8 +31,6 @@ void ufs_qcom_phy_enable_dev_ref_clk(struct phy *phy);
47 */ 31 */
48void ufs_qcom_phy_disable_dev_ref_clk(struct phy *phy); 32void ufs_qcom_phy_disable_dev_ref_clk(struct phy *phy);
49 33
50int ufs_qcom_phy_enable_iface_clk(struct phy *phy);
51void ufs_qcom_phy_disable_iface_clk(struct phy *phy);
52int ufs_qcom_phy_start_serdes(struct phy *phy); 34int ufs_qcom_phy_start_serdes(struct phy *phy);
53int ufs_qcom_phy_set_tx_lane_enable(struct phy *phy, u32 tx_lanes); 35int ufs_qcom_phy_set_tx_lane_enable(struct phy *phy, u32 tx_lanes);
54int ufs_qcom_phy_calibrate_phy(struct phy *phy, bool is_rate_B); 36int ufs_qcom_phy_calibrate_phy(struct phy *phy, bool is_rate_B);