diff options
author | Stanley Chu <stanley.chu@mediatek.com> | 2020-02-07 15:03:57 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-02-12 19:27:16 -0500 |
commit | 984eaac133e3d6d993ffd4de9e4bdc2c94de742b (patch) | |
tree | 62e9cfba274cf9274b6ebb9f284b4ede3c3a3ee5 /drivers/scsi/ufs/cdns-pltfrm.c | |
parent | 618b4d07a4420ca9f01837f183ce7b1ac0b31307 (diff) | |
download | lwn-984eaac133e3d6d993ffd4de9e4bdc2c94de742b.tar.gz lwn-984eaac133e3d6d993ffd4de9e4bdc2c94de742b.zip |
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/cdns-pltfrm.c')
-rw-r--r-- | drivers/scsi/ufs/cdns-pltfrm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/cdns-pltfrm.c b/drivers/scsi/ufs/cdns-pltfrm.c index 56a6a1ed5ec2..da065a259f6e 100644 --- a/drivers/scsi/ufs/cdns-pltfrm.c +++ b/drivers/scsi/ufs/cdns-pltfrm.c @@ -192,7 +192,7 @@ static int cdns_ufs_link_startup_notify(struct ufs_hba *hba, * and device TX LCC are disabled once link startup is * completed. */ - ufshcd_dme_set(hba, UIC_ARG_MIB(PA_LOCAL_TX_LCC_ENABLE), 0); + ufshcd_disable_host_tx_lcc(hba); /* * Disabling Autohibern8 feature in cadence UFS |