File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -387,9 +387,8 @@ static int ufs_qcom_power_up_sequence(struct ufs_hba *hba)
387
387
*/
388
388
static void ufs_qcom_enable_hw_clk_gating (struct ufs_hba * hba )
389
389
{
390
- ufshcd_writel (hba ,
391
- ufshcd_readl (hba , REG_UFS_CFG2 ) | REG_UFS_CFG2_CGC_EN_ALL ,
392
- REG_UFS_CFG2 );
390
+ ufshcd_rmwl (hba , REG_UFS_CFG2_CGC_EN_ALL , REG_UFS_CFG2_CGC_EN_ALL ,
391
+ REG_UFS_CFG2 );
393
392
394
393
/* Ensure that HW clock gating is enabled before next operations */
395
394
mb ();
@@ -1689,11 +1688,8 @@ static int ufs_qcom_config_esi(struct ufs_hba *hba)
1689
1688
platform_msi_domain_free_irqs (hba -> dev );
1690
1689
} else {
1691
1690
if (host -> hw_ver .major == 6 && host -> hw_ver .minor == 0 &&
1692
- host -> hw_ver .step == 0 ) {
1693
- ufshcd_writel (hba ,
1694
- ufshcd_readl (hba , REG_UFS_CFG3 ) | 0x1F000 ,
1695
- REG_UFS_CFG3 );
1696
- }
1691
+ host -> hw_ver .step == 0 )
1692
+ ufshcd_rmwl (hba , ESI_VEC_MASK , 0x1f00 , REG_UFS_CFG3 );
1697
1693
ufshcd_mcq_enable_esi (hba );
1698
1694
}
1699
1695
Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ enum {
102
102
#define TMRLUT_HW_CGC_EN BIT(6)
103
103
#define OCSC_HW_CGC_EN BIT(7)
104
104
105
+ /* bit definitions for REG_UFS_CFG3 register */
106
+ #define ESI_VEC_MASK GENMASK(22, 12)
107
+
105
108
/* bit definitions for REG_UFS_PARAM0 */
106
109
#define MAX_HS_GEAR_MASK GENMASK(6, 4)
107
110
#define UFS_QCOM_MAX_GEAR (x ) FIELD_GET(MAX_HS_GEAR_MASK, (x))
You can’t perform that action at this time.
0 commit comments