diff options
author | Nitin Rawat <quic_nitirawa@quicinc.com> | 2023-07-26 19:11:39 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-08-07 21:06:19 -0400 |
commit | 548fdf771b8e85e6f14fcebcf3443ea475444445 (patch) | |
tree | a671b4c7143f367ec78c4cfba42d0ad38a3ab6e8 /drivers/ufs | |
parent | 6cae9a3910ac1b5daf5ac3db9576b78cc4eff5aa (diff) | |
download | lwn-548fdf771b8e85e6f14fcebcf3443ea475444445.tar.gz lwn-548fdf771b8e85e6f14fcebcf3443ea475444445.zip |
scsi: ufs: core: Export ufshcd_is_hba_active()
Export ufshcd_is_hba_active() to allow driver modules to check the state of
the host controller.
Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Link: https://lore.kernel.org/r/20230726134140.7180-2-quic_nitirawa@quicinc.com
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs')
-rw-r--r-- | drivers/ufs/core/ufshcd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index f45614a840ae..9f43b03f3b72 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -969,10 +969,11 @@ static inline void ufshcd_hba_start(struct ufs_hba *hba) * * Return: 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) { |