Re: [PATCH 2/2] scsi: ufs: core: Add support to retrieve and store TX Equalization settings

Bean Huo
2026-04-20T22:39:56Z

>  /* Wrapper functions for safely calling variant operations */
>  static inline const char *ufshcd_get_var_name(struct ufs_hba *hba)
> diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
> index e5e22adcbbc3..bf6deb34a5fe 100644
> --- a/drivers/ufs/core/ufshcd.c
> +++ b/drivers/ufs/core/ufshcd.c
> @@ -9128,6 +9128,8 @@ static int ufshcd_device_params_init(struct ufs_hba
> *hba)
>                 dev_err(hba->dev,
>                         "%s: Failed getting max supported power mode\n",
>                         __func__);
> +
> +       ufshcd_retrieve_tx_eq_settings(hba);

needs to check wspecversion before calling it?

Kind regards,
Bean