aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsheebab <[email protected]>2019-12-03 11:07:15 +0100
committerMartin K. Petersen <[email protected]>2019-12-09 19:03:38 -0500
commitd168001d14eccfda229b4a41a2c31a21e3c379da (patch)
tree33ff2008a28aeefaef1ce0bcffb67a71578c043e
parentfee92f25777789d73e1936b91472e9c4644457c8 (diff)
scsi: ufs: Disable autohibern8 feature in Cadence UFS
This patch disables autohibern8 feature in Cadence UFS. The autohibern8 feature has issues due to which unexpected interrupt trigger is happening. After the interrupt issue is sorted out, autohibern8 feature will be re-enabled Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: sheebab <[email protected]> Reviewed-by: Alim Akhtar <[email protected]> Tested-by: Vignesh Raghavendra <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--drivers/scsi/ufs/cdns-pltfrm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/cdns-pltfrm.c b/drivers/scsi/ufs/cdns-pltfrm.c
index b2af04c57a39..6feeb0faf123 100644
--- a/drivers/scsi/ufs/cdns-pltfrm.c
+++ b/drivers/scsi/ufs/cdns-pltfrm.c
@@ -99,6 +99,12 @@ static int cdns_ufs_link_startup_notify(struct ufs_hba *hba,
*/
ufshcd_dme_set(hba, UIC_ARG_MIB(PA_LOCAL_TX_LCC_ENABLE), 0);
+ /*
+ * Disabling Autohibern8 feature in cadence UFS
+ * to mask unexpected interrupt trigger.
+ */
+ hba->ahit = 0;
+
return 0;
}