From: Manivannan Sadhasivam <mani@kernel.org>
To: Nitin Rawat <quic_nitirawa@quicinc.com>
Cc: powen.kao@mediatek.com, bvanassche@acm.org,
alim.akhtar@samsung.com, adrian.hunter@intel.com,
jejb@linux.ibm.com, stanley.chu@mediatek.com,
asutoshd@codeaurora.org, quic_cang@quicinc.com,
martin.petersen@oracle.com, beanhuo@micron.com,
ebiggers@google.com, agross@kernel.org, Arthur.Simchaev@wdc.com,
konrad.dybcio@linaro.org, quic_ziqichen@quicinc.com,
quic_nguyenb@quicinc.com, quic_narepall@quicinc.com,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH V2 1/2] scsi: ufs: core: Export ufshcd_is_hba_active
Date: Wed, 2 Aug 2023 09:35:38 +0530 [thread overview]
Message-ID: <20230802040538.GB2370@thinkpad> (raw)
In-Reply-To: <20230726134140.7180-2-quic_nitirawa@quicinc.com>
On Wed, Jul 26, 2023 at 07:11:39PM +0530, Nitin Rawat wrote:
> Export ufshcd_is_hba_active() to allow vendor driver modules
> to check the state of host controller.
>
> Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
- Mani
> ---
> drivers/ufs/core/ufshcd.c | 3 ++-
> include/ufs/ufshcd.h | 1 +
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index 983fae84d9e8..962aa5c1fe69 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -995,10 +995,11 @@ static inline void ufshcd_hba_start(struct ufs_hba *hba)
> *
> * Returns true if and only if the controller is active.
> */
> -static inline bool ufshcd_is_hba_active(struct ufs_hba *hba)
> +bool ufshcd_is_hba_active(struct ufs_hba *hba)
> {
> return ufshcd_readl(hba, REG_CONTROLLER_ENABLE) & CONTROLLER_ENABLE;
> }
> +EXPORT_SYMBOL_GPL(ufshcd_is_hba_active);
>
> u32 ufshcd_get_local_unipro_ver(struct ufs_hba *hba)
> {
> diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h
> index 6dc11fa0ebb1..ef04c3363be8 100644
> --- a/include/ufs/ufshcd.h
> +++ b/include/ufs/ufshcd.h
> @@ -1398,6 +1398,7 @@ int ufshcd_wb_toggle_buf_flush(struct ufs_hba *hba, bool enable);
> int ufshcd_suspend_prepare(struct device *dev);
> int __ufshcd_suspend_prepare(struct device *dev, bool rpm_ok_for_spm);
> void ufshcd_resume_complete(struct device *dev);
> +bool ufshcd_is_hba_active(struct ufs_hba *hba);
>
> /* Wrapper functions for safely calling variant operations */
> static inline int ufshcd_vops_init(struct ufs_hba *hba)
> --
> 2.17.1
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2023-08-02 4:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-26 13:41 [PATCH V2 0/2] Fix hibern8 enter failure during host reset Nitin Rawat
2023-07-26 13:41 ` [PATCH V2 1/2] scsi: ufs: core: Export ufshcd_is_hba_active Nitin Rawat
2023-08-02 4:05 ` Manivannan Sadhasivam [this message]
2023-07-26 13:41 ` [PATCH V2 2/2] scsi: ufs: ufs-qcom: check host controller state Nitin Rawat
2023-08-02 4:10 ` Manivannan Sadhasivam
2023-08-08 1:06 ` [PATCH V2 0/2] Fix hibern8 enter failure during host reset Martin K. Petersen
2023-08-21 22:27 ` Martin K. Petersen
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=20230802040538.GB2370@thinkpad \
--to=mani@kernel.org \
--cc=Arthur.Simchaev@wdc.com \
--cc=adrian.hunter@intel.com \
--cc=agross@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=asutoshd@codeaurora.org \
--cc=beanhuo@micron.com \
--cc=bvanassche@acm.org \
--cc=ebiggers@google.com \
--cc=jejb@linux.ibm.com \
--cc=konrad.dybcio@linaro.org \
--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=powen.kao@mediatek.com \
--cc=quic_cang@quicinc.com \
--cc=quic_narepall@quicinc.com \
--cc=quic_nguyenb@quicinc.com \
--cc=quic_nitirawa@quicinc.com \
--cc=quic_ziqichen@quicinc.com \
--cc=stanley.chu@mediatek.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.