From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Vivek Gautam <vivek.gautam@codeaurora.org>
Cc: kishon@ti.com, vinholikatti@gmail.com, jejb@linux.vnet.ibm.com,
martin.petersen@oracle.com, linux-kernel@vger.kernel.org,
linux-scsi@vger.kernel.org, subhashj@codeaurora.org,
evgreen@chromium.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH 1/3] phy: qcom-ufs: Remove stale methods that handle ref clk
Date: Mon, 24 Sep 2018 10:23:42 -0700 [thread overview]
Message-ID: <20180924172342.GK1367@tuxbook-pro> (raw)
In-Reply-To: <20180904101719.18049-2-vivek.gautam@codeaurora.org>
On Tue 04 Sep 03:17 PDT 2018, Vivek Gautam wrote:
> 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>
Thanks for the ping Vivek, I didn't spot these when you posted them.
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Regards,
Bjorn
> ---
> drivers/phy/qualcomm/phy-qcom-ufs.c | 50 -------------------------------------
> include/linux/phy/phy-qcom-ufs.h | 14 -----------
> 2 files changed, 64 deletions(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-ufs.c b/drivers/phy/qualcomm/phy-qcom-ufs.c
> index c5493ea51282..f2979ccad00a 100644
> --- a/drivers/phy/qualcomm/phy-qcom-ufs.c
> +++ b/drivers/phy/qualcomm/phy-qcom-ufs.c
> @@ -431,56 +431,6 @@ static void ufs_qcom_phy_disable_ref_clk(struct ufs_qcom_phy *phy)
> }
> }
>
> -#define UFS_REF_CLK_EN (1 << 5)
> -
> -static void ufs_qcom_phy_dev_ref_clk_ctrl(struct phy *generic_phy, bool enable)
> -{
> - struct ufs_qcom_phy *phy = get_ufs_qcom_phy(generic_phy);
> -
> - if (phy->dev_ref_clk_ctrl_mmio &&
> - (enable ^ phy->is_dev_ref_clk_enabled)) {
> - u32 temp = readl_relaxed(phy->dev_ref_clk_ctrl_mmio);
> -
> - if (enable)
> - temp |= UFS_REF_CLK_EN;
> - else
> - temp &= ~UFS_REF_CLK_EN;
> -
> - /*
> - * If we are here to disable this clock immediately after
> - * entering into hibern8, we need to make sure that device
> - * ref_clk is active atleast 1us after the hibern8 enter.
> - */
> - if (!enable)
> - udelay(1);
> -
> - writel_relaxed(temp, phy->dev_ref_clk_ctrl_mmio);
> - /* ensure that ref_clk is enabled/disabled before we return */
> - wmb();
> - /*
> - * If we call hibern8 exit after this, we need to make sure that
> - * device ref_clk is stable for atleast 1us before the hibern8
> - * exit command.
> - */
> - if (enable)
> - udelay(1);
> -
> - phy->is_dev_ref_clk_enabled = enable;
> - }
> -}
> -
> -void ufs_qcom_phy_enable_dev_ref_clk(struct phy *generic_phy)
> -{
> - ufs_qcom_phy_dev_ref_clk_ctrl(generic_phy, true);
> -}
> -EXPORT_SYMBOL_GPL(ufs_qcom_phy_enable_dev_ref_clk);
> -
> -void ufs_qcom_phy_disable_dev_ref_clk(struct phy *generic_phy)
> -{
> - ufs_qcom_phy_dev_ref_clk_ctrl(generic_phy, false);
> -}
> -EXPORT_SYMBOL_GPL(ufs_qcom_phy_disable_dev_ref_clk);
> -
> /* Turn ON M-PHY RMMI interface clocks */
> static int ufs_qcom_phy_enable_iface_clk(struct ufs_qcom_phy *phy)
> {
> diff --git a/include/linux/phy/phy-qcom-ufs.h b/include/linux/phy/phy-qcom-ufs.h
> index 0a2c18a9771d..9dd85071bcce 100644
> --- a/include/linux/phy/phy-qcom-ufs.h
> +++ b/include/linux/phy/phy-qcom-ufs.h
> @@ -17,20 +17,6 @@
>
> #include "phy.h"
>
> -/**
> - * ufs_qcom_phy_enable_dev_ref_clk() - Enable the device
> - * ref clock.
> - * @phy: reference to a generic phy.
> - */
> -void ufs_qcom_phy_enable_dev_ref_clk(struct phy *phy);
> -
> -/**
> - * ufs_qcom_phy_disable_dev_ref_clk() - Disable the device
> - * ref clock.
> - * @phy: reference to a generic phy.
> - */
> -void ufs_qcom_phy_disable_dev_ref_clk(struct phy *phy);
> -
> int ufs_qcom_phy_set_tx_lane_enable(struct phy *phy, u32 tx_lanes);
> void ufs_qcom_phy_save_controller_version(struct phy *phy,
> u8 major, u16 minor, u16 step);
> --
> QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member
> of Code Aurora Forum, hosted by The Linux Foundation
>
next prev parent reply other threads:[~2018-09-24 17:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-04 10:17 [PATCH 0/3] scsi: ufs-qcom: Remove all direct calls to qcom-ufs phy Vivek Gautam
2018-09-04 10:17 ` [PATCH 1/3] phy: qcom-ufs: Remove stale methods that handle ref clk Vivek Gautam
2018-09-24 17:23 ` Bjorn Andersson [this message]
2018-09-25 5:40 ` Vivek Gautam
2018-09-04 10:17 ` [PATCH 2/3] scsi/ufs: qcom: Remove ufs_qcom_phy_*() calls from host Vivek Gautam
2018-09-24 17:24 ` Bjorn Andersson
2018-09-25 9:52 ` Vivek Gautam
2018-09-26 0:28 ` Martin K. Petersen
2018-09-26 6:14 ` Vivek Gautam
2018-09-04 10:17 ` [PATCH 3/3] phy: qcom-ufs: Declare 20nm qcom ufs qmp phy as Broken Vivek Gautam
2018-09-24 17:29 ` Bjorn Andersson
2018-09-24 8:14 ` [PATCH 0/3] scsi: ufs-qcom: Remove all direct calls to qcom-ufs phy Vivek Gautam
2018-09-25 6:42 ` Kishon Vijay Abraham I
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180924172342.GK1367@tuxbook-pro \
--to=bjorn.andersson@linaro.org \
--cc=evgreen@chromium.org \
--cc=jejb@linux.vnet.ibm.com \
--cc=kishon@ti.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=subhashj@codeaurora.org \
--cc=vinholikatti@gmail.com \
--cc=vivek.gautam@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox