File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -679,6 +679,9 @@ static void ufs_mtk_init_host_caps(struct ufs_hba *hba)
679
679
if (of_property_read_bool (np , "mediatek,ufs-rtff-mtcmos" ))
680
680
host -> caps |= UFS_MTK_CAP_RTFF_MTCMOS ;
681
681
682
+ if (of_property_read_bool (np , "mediatek,ufs-broken-rtc" ))
683
+ host -> caps |= UFS_MTK_CAP_MCQ_BROKEN_RTC ;
684
+
682
685
dev_info (hba -> dev , "caps: 0x%x" , host -> caps );
683
686
}
684
687
@@ -1035,8 +1038,11 @@ static int ufs_mtk_init(struct ufs_hba *hba)
1035
1038
shost -> rpm_autosuspend_delay = MTK_RPM_AUTOSUSPEND_DELAY_MS ;
1036
1039
1037
1040
hba -> quirks |= UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL ;
1041
+
1038
1042
hba -> quirks |= UFSHCD_QUIRK_MCQ_BROKEN_INTR ;
1039
- hba -> quirks |= UFSHCD_QUIRK_MCQ_BROKEN_RTC ;
1043
+ if (host -> caps & UFS_MTK_CAP_MCQ_BROKEN_RTC )
1044
+ hba -> quirks |= UFSHCD_QUIRK_MCQ_BROKEN_RTC ;
1045
+
1040
1046
hba -> vps -> wb_flush_threshold = UFS_WB_BUF_REMAIN_PERCENT (80 );
1041
1047
1042
1048
if (host -> caps & UFS_MTK_CAP_DISABLE_AH8 )
Original file line number Diff line number Diff line change @@ -133,6 +133,8 @@ enum ufs_mtk_host_caps {
133
133
UFS_MTK_CAP_DISABLE_MCQ = 1 << 8 ,
134
134
/* Control MTCMOS with RTFF */
135
135
UFS_MTK_CAP_RTFF_MTCMOS = 1 << 9 ,
136
+
137
+ UFS_MTK_CAP_MCQ_BROKEN_RTC = 1 << 10 ,
136
138
};
137
139
138
140
struct ufs_mtk_crypt_cfg {
You can’t perform that action at this time.
0 commit comments