summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs/ufs-mediatek.h
diff options
context:
space:
mode:
authorStanley Chu <stanley.chu@mediatek.com>2020-02-20 14:48:48 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2020-02-29 02:41:52 +0100
commitb3222c326c965f94b2e8e8ac73dc395ca82cd088 (patch)
treeb7d371769a4addebb2c926ec5dbdef1d640d0acc /drivers/scsi/ufs/ufs-mediatek.h
parentscsi: ufs-qcom: Apply QUIRK_HOST_TACTIVATE for WDC UFS devices (diff)
downloadlinux-b3222c326c965f94b2e8e8ac73dc395ca82cd088.tar.xz
linux-b3222c326c965f94b2e8e8ac73dc395ca82cd088.zip
scsi: ufs: ufs-mediatek: add waiting time for reference clock
Some delays may be required either after gating or before ungating reference clock for device according to vendor requirements. Note that in UFS 3.0, the delay time after gating reference clock can be defined by attribute bRefClkGatingWaitTime. Use the formal value instead if it can be queried from device. Link: https://lore.kernel.org/r/20200220134848.8807-2-stanley.chu@mediatek.com Reviewed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
-rw-r--r--drivers/scsi/ufs/ufs-mediatek.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufs-mediatek.h b/drivers/scsi/ufs/ufs-mediatek.h
index 492414e5f481..4c787b99fe41 100644
--- a/drivers/scsi/ufs/ufs-mediatek.h
+++ b/drivers/scsi/ufs/ufs-mediatek.h
@@ -92,6 +92,8 @@ struct ufs_mtk_host {
struct ufs_hba *hba;
struct phy *mphy;
bool ref_clk_enabled;
+ u16 ref_clk_ungating_wait_us;
+ u16 ref_clk_gating_wait_us;
};
#endif /* !_UFS_MEDIATEK_H */