summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufs_quirks.h
diff options
context:
space:
mode:
authorStanley Chu <stanley.chu@mediatek.com>2020-07-29 07:18:39 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2020-07-31 03:10:29 +0200
commitc4df6eed972e001a206a173738bec8c5f903257a (patch)
treed28d8dff97185a5c892230524154769322d622ca /drivers/scsi/ufs/ufs_quirks.h
parentscsi: virtio-scsi: Correctly handle the case where all LUNs are unplugged (diff)
downloadlinux-c4df6eed972e001a206a173738bec8c5f903257a.tar.xz
linux-c4df6eed972e001a206a173738bec8c5f903257a.zip
scsi: ufs: Introduce device quirk "DELAY_AFTER_LPM"
Some UFS devices require delay after VCC power rail is turned off. Introduce a device quirk "DELAY_AFTER_LPM" to add 5ms delay after VCC power-off during suspend flow. Link: https://lore.kernel.org/r/20200729051840.31318-2-stanley.chu@mediatek.com Reviewed-by: Andy Teng <andy.teng@mediatek.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Reviewed-by: Can Guo <cang@codeaurora.org> Acked-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>
Diffstat (limited to 'drivers/scsi/ufs/ufs_quirks.h')
-rw-r--r--drivers/scsi/ufs/ufs_quirks.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs_quirks.h b/drivers/scsi/ufs/ufs_quirks.h
index 2a0041493e30..07f559ac5883 100644
--- a/drivers/scsi/ufs/ufs_quirks.h
+++ b/drivers/scsi/ufs/ufs_quirks.h
@@ -109,4 +109,11 @@ struct ufs_dev_fix {
*/
#define UFS_DEVICE_QUIRK_SUPPORT_EXTENDED_FEATURES (1 << 10)
+/*
+ * Some UFS devices require delay after VCC power rail is turned-off.
+ * Enable this quirk to introduce 5ms delays after VCC power-off during
+ * suspend flow.
+ */
+#define UFS_DEVICE_QUIRK_DELAY_AFTER_LPM (1 << 11)
+
#endif /* UFS_QUIRKS_H_ */