mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
UPSTREAM: scsi: ufs-mediatek: fix HOST_PA_TACTIVATE quirk for Samsung UFS Devices
Device quirk "UFS_DEVICE_QUIRK_HOST_PA_TACTIVATE" is enabled for all Samsung devices by default currently. However MediaTek UFS host requires different host PA_TACTIVATE configuration. Hence clear this quirk first and then apply vendor-specific value in vops callback. Bug: 151050916 Change-Id: Icae52601cebf3416ad48a3dcc1b6b5223dec50a1 (cherry picked from commit 47d054580a75b7d14d275a76146ce2f41bc16a81) Link: https://lore.kernel.org/r/20200302135346.16797-1-stanley.chu@mediatek.com Reviewed-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
0f30b1ed21
commit
8880ad4916
1 changed files with 3 additions and 1 deletions
|
|
@ -533,8 +533,10 @@ static int ufs_mtk_apply_dev_quirks(struct ufs_hba *hba)
|
|||
struct ufs_dev_info *dev_info = &hba->dev_info;
|
||||
u16 mid = dev_info->wmanufacturerid;
|
||||
|
||||
if (mid == UFS_VENDOR_SAMSUNG)
|
||||
if (mid == UFS_VENDOR_SAMSUNG) {
|
||||
hba->dev_quirks &= ~UFS_DEVICE_QUIRK_HOST_PA_TACTIVATE;
|
||||
ufshcd_dme_set(hba, UIC_ARG_MIB(PA_TACTIVATE), 6);
|
||||
}
|
||||
|
||||
/*
|
||||
* Decide waiting time before gating reference clock and
|
||||
|
|
|
|||
Loading…
Reference in a new issue