summaryrefslogtreecommitdiff
path: root/drivers/scsi/ufs/ufshcd-pci.c
diff options
context:
space:
mode:
authorStanley Chu <stanley.chu@mediatek.com>2020-02-07 15:03:57 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-02-12 19:27:16 -0500
commit984eaac133e3d6d993ffd4de9e4bdc2c94de742b (patch)
tree62e9cfba274cf9274b6ebb9f284b4ede3c3a3ee5 /drivers/scsi/ufs/ufshcd-pci.c
parent618b4d07a4420ca9f01837f183ce7b1ac0b31307 (diff)
scsi: ufs: introduce common function to disable host TX LCC
Many vendors would like to disable host TX LCC during initialization flow. Introduce a common function for all users to make drivers easier to read and maintained. This patch does not change any functionality. Link: https://lore.kernel.org/r/20200207070357.17169-3-stanley.chu@mediatek.com Reviewed-by: Can Guo <cang@codeaurora.org> Reviewed-by: Avri Altman <avri.altman@wdc.com> Reviewed-by: Asutosh Das <asutoshd@codeaurora.org> Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd-pci.c')
-rw-r--r--drivers/scsi/ufs/ufshcd-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c
index 3b19de3ae9a3..8f78a8151499 100644
--- a/drivers/scsi/ufs/ufshcd-pci.c
+++ b/drivers/scsi/ufs/ufshcd-pci.c
@@ -44,7 +44,7 @@ static int ufs_intel_disable_lcc(struct ufs_hba *hba)
ufshcd_dme_get(hba, attr, &lcc_enable);
if (lcc_enable)
- ufshcd_dme_set(hba, attr, 0);
+ ufshcd_disable_host_tx_lcc(hba);
return 0;
}