mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
FROMGIT: scsi: ufs: Allow vendor device quirks to be applied early
Currently ufshcd_vops_apply_dev_quirks() comes after all UniPro parameters have been tuned. Move it up so that vendors have a chance to apply device quirks in advance. Link: https://lore.kernel.org/r/1582517363-11536-2-git-send-email-cang@codeaurora.org Reviewed-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Can Guo <cang@codeaurora.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Bug: 150731199 Change-Id: Ib4bb3001f253d6f25666b008f9f3072a49c42ac0 (cherry picked from commit e91ed9e0e4fa4ff913edb6e29c53f6a365e95609 https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git 5.7/scsi-queue) Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:
parent
76afd21e10
commit
acc625f7c0
1 changed files with 2 additions and 2 deletions
|
|
@ -6910,14 +6910,14 @@ static void ufshcd_tune_unipro_params(struct ufs_hba *hba)
|
|||
ufshcd_tune_pa_hibern8time(hba);
|
||||
}
|
||||
|
||||
ufshcd_vops_apply_dev_quirks(hba);
|
||||
|
||||
if (hba->dev_quirks & UFS_DEVICE_QUIRK_PA_TACTIVATE)
|
||||
/* set 1ms timeout for PA_TACTIVATE */
|
||||
ufshcd_dme_set(hba, UIC_ARG_MIB(PA_TACTIVATE), 10);
|
||||
|
||||
if (hba->dev_quirks & UFS_DEVICE_QUIRK_HOST_PA_TACTIVATE)
|
||||
ufshcd_quirk_tune_host_pa_tactivate(hba);
|
||||
|
||||
ufshcd_vops_apply_dev_quirks(hba);
|
||||
}
|
||||
|
||||
static void ufshcd_clear_dbg_ufs_stats(struct ufs_hba *hba)
|
||||
|
|
|
|||
Loading…
Reference in a new issue