mirror of
https://github.com/torvalds/linux.git
synced 2026-07-30 11:11:26 +02:00
scsi: ufs: ufs-qcom: Correct the REG_UFS_CFG0 setting for pineapple
Correctly configure the REG_UFS_CFG0 register for supporting UFS4.0 devices on pineapple platforms. Change-Id: If2edfb4d939a15d08bcdc2150e4badd086bc7ccf Signed-off-by: Bao D. Nguyen <quic_nguyenb@quicinc.com>
This commit is contained in:
parent
91270dbb7a
commit
fcfc5902c3
|
|
@ -482,7 +482,7 @@ static void ufs_qcom_select_unipro_mode(struct ufs_qcom_host *host)
|
|||
ufs_qcom_cap_qunipro(host) ? QUNIPRO_SEL : 0,
|
||||
REG_UFS_CFG1);
|
||||
|
||||
if (host->hw_ver.major == 0x05)
|
||||
if (host->hw_ver.major >= 0x05)
|
||||
ufshcd_rmwl(host->hba, QUNIPRO_G4_SEL, 0, REG_UFS_CFG0);
|
||||
|
||||
/* make sure above configuration is applied before we return */
|
||||
|
|
@ -646,7 +646,7 @@ static int ufs_qcom_enable_hw_clk_gating(struct ufs_hba *hba)
|
|||
ufshcd_readl(hba, REG_UFS_CFG2) | REG_UFS_CFG2_CGC_EN_ALL,
|
||||
REG_UFS_CFG2);
|
||||
|
||||
if (host->hw_ver.major == 0x05)
|
||||
if (host->hw_ver.major >= 0x05)
|
||||
/* Ensure unused Unipro block's clock is gated */
|
||||
ufshcd_rmwl(host->hba, UNUSED_UNIPRO_CLK_GATED,
|
||||
UNUSED_UNIPRO_CLK_GATED, UFS_AH8_CFG);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user