This repository was archived by the owner on Nov 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -893,6 +893,7 @@ static int ufs_mtk_init(struct ufs_hba *hba)
893
893
const struct of_device_id * id ;
894
894
struct device * dev = hba -> dev ;
895
895
struct ufs_mtk_host * host ;
896
+ struct Scsi_Host * shost = hba -> host ;
896
897
int err = 0 ;
897
898
898
899
host = devm_kzalloc (dev , sizeof (* host ), GFP_KERNEL );
@@ -937,6 +938,9 @@ static int ufs_mtk_init(struct ufs_hba *hba)
937
938
/* Enable clk scaling*/
938
939
hba -> caps |= UFSHCD_CAP_CLK_SCALING ;
939
940
941
+ /* Set runtime pm delay to replace default */
942
+ shost -> rpm_autosuspend_delay = MTK_RPM_AUTOSUSPEND_DELAY_MS ;
943
+
940
944
hba -> quirks |= UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL ;
941
945
hba -> quirks |= UFSHCD_QUIRK_MCQ_BROKEN_INTR ;
942
946
hba -> quirks |= UFSHCD_QUIRK_MCQ_BROKEN_RTC ;
Original file line number Diff line number Diff line change @@ -190,6 +190,9 @@ struct ufs_mtk_host {
190
190
struct ufs_mtk_mcq_intr_info mcq_intr_info [UFSHCD_MAX_Q_NR ];
191
191
};
192
192
193
+ /* MTK delay of autosuspend: 500 ms */
194
+ #define MTK_RPM_AUTOSUSPEND_DELAY_MS 500
195
+
193
196
/*
194
197
* Multi-VCC by Numbering
195
198
*/
You can’t perform that action at this time.
0 commit comments