diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2022-12-22 19:39:56 +0530 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-01-11 21:49:34 -0500 |
commit | c2c38c573a2e6184f9acd10e98305d3cb5f1c62b (patch) | |
tree | df5d9531d15d8d85aebfa94cf2fd574c31dd0cea /drivers/ufs | |
parent | 7959587f3284bf163e4f1baff3c6fa71fc6a55b1 (diff) | |
download | linux-stable-c2c38c573a2e6184f9acd10e98305d3cb5f1c62b.tar.gz linux-stable-c2c38c573a2e6184f9acd10e98305d3cb5f1c62b.tar.bz2 linux-stable-c2c38c573a2e6184f9acd10e98305d3cb5f1c62b.zip |
scsi: ufs: core: Add reinit_notify() callback
reinit_notify() callback can be used by the UFS controller drivers to
perform changes required for UFSHCD reinit that can happen during max gear
switch.
Tested-by: Andrew Halaney <ahalaney@redhat.com> # Qdrive3/sa8540p-ride
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs')
-rw-r--r-- | drivers/ufs/core/ufshcd-priv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/ufs/core/ufshcd-priv.h b/drivers/ufs/core/ufshcd-priv.h index c52e2f349aaa..8fff72e63e36 100644 --- a/drivers/ufs/core/ufshcd-priv.h +++ b/drivers/ufs/core/ufshcd-priv.h @@ -223,6 +223,12 @@ static inline void ufshcd_vops_config_scaling_param(struct ufs_hba *hba, hba->vops->config_scaling_param(hba, p, data); } +static inline void ufshcd_vops_reinit_notify(struct ufs_hba *hba) +{ + if (hba->vops && hba->vops->reinit_notify) + hba->vops->reinit_notify(hba); +} + extern const struct ufs_pm_lvl_states ufs_pm_lvl_states[]; /** |