Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: qcom-ufs: Remove stale methods that handle ref clk

Remove ufs_qcom_phy_enable/(disable)_dev_ref_clk() that
are not being used by any code.

Signed-off-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Vivek Gautam and committed by
Kishon Vijay Abraham I
2ba3c43f 99c7c736

-64
-50
drivers/phy/qualcomm/phy-qcom-ufs.c
··· 431 431 } 432 432 } 433 433 434 - #define UFS_REF_CLK_EN (1 << 5) 435 - 436 - static void ufs_qcom_phy_dev_ref_clk_ctrl(struct phy *generic_phy, bool enable) 437 - { 438 - struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy); 439 - 440 - if (phy->dev_ref_clk_ctrl_mmio && 441 - (enable ^ phy->is_dev_ref_clk_enabled)) { 442 - u32 temp = readl_relaxed(phy->dev_ref_clk_ctrl_mmio); 443 - 444 - if (enable) 445 - temp |= UFS_REF_CLK_EN; 446 - else 447 - temp &= ~UFS_REF_CLK_EN; 448 - 449 - /* 450 - * If we are here to disable this clock immediately after 451 - * entering into hibern8, we need to make sure that device 452 - * ref_clk is active atleast 1us after the hibern8 enter. 453 - */ 454 - if (!enable) 455 - udelay(1); 456 - 457 - writel_relaxed(temp, phy->dev_ref_clk_ctrl_mmio); 458 - /* ensure that ref_clk is enabled/disabled before we return */ 459 - wmb(); 460 - /* 461 - * If we call hibern8 exit after this, we need to make sure that 462 - * device ref_clk is stable for atleast 1us before the hibern8 463 - * exit command. 464 - */ 465 - if (enable) 466 - udelay(1); 467 - 468 - phy->is_dev_ref_clk_enabled = enable; 469 - } 470 - } 471 - 472 - void ufs_qcom_phy_enable_dev_ref_clk(struct phy *generic_phy) 473 - { 474 - ufs_qcom_phy_dev_ref_clk_ctrl(generic_phy, true); 475 - } 476 - EXPORT_SYMBOL_GPL(ufs_qcom_phy_enable_dev_ref_clk); 477 - 478 - void ufs_qcom_phy_disable_dev_ref_clk(struct phy *generic_phy) 479 - { 480 - ufs_qcom_phy_dev_ref_clk_ctrl(generic_phy, false); 481 - } 482 - EXPORT_SYMBOL_GPL(ufs_qcom_phy_disable_dev_ref_clk); 483 - 484 434 /* Turn ON M-PHY RMMI interface clocks */ 485 435 static int ufs_qcom_phy_enable_iface_clk(struct ufs_qcom_phy *phy) 486 436 {
-14
include/linux/phy/phy-qcom-ufs.h
··· 17 17 18 18 #include "phy.h" 19 19 20 - /** 21 - * ufs_qcom_phy_enable_dev_ref_clk() - Enable the device 22 - * ref clock. 23 - * @phy: reference to a generic phy. 24 - */ 25 - void ufs_qcom_phy_enable_dev_ref_clk(struct phy *phy); 26 - 27 - /** 28 - * ufs_qcom_phy_disable_dev_ref_clk() - Disable the device 29 - * ref clock. 30 - * @phy: reference to a generic phy. 31 - */ 32 - void ufs_qcom_phy_disable_dev_ref_clk(struct phy *phy); 33 - 34 20 int ufs_qcom_phy_set_tx_lane_enable(struct phy *phy, u32 tx_lanes); 35 21 void ufs_qcom_phy_save_controller_version(struct phy *phy, 36 22 u8 major, u16 minor, u16 step);