File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -188,8 +188,7 @@ static void *sd_zbc_alloc_report_buffer(struct scsi_disk *sdkp,
188188 bufsize = min_t (size_t , bufsize , queue_max_segments (q ) << PAGE_SHIFT );
189189
190190 while (bufsize >= SECTOR_SIZE ) {
191- buf = __vmalloc (bufsize ,
192- GFP_KERNEL | __GFP_ZERO | __GFP_NORETRY );
191+ buf = kvzalloc (bufsize , GFP_KERNEL | __GFP_NORETRY );
193192 if (buf ) {
194193 * buflen = bufsize ;
195194 return buf ;
Original file line number Diff line number Diff line change @@ -8623,6 +8623,14 @@ static int ufshcd_add_lus(struct ufs_hba *hba)
86238623 ufshcd_init_clk_scaling_sysfs (hba );
86248624 }
86258625
8626+ /*
8627+ * The RTC update code accesses the hba->ufs_device_wlun->sdev_gendev
8628+ * pointer and hence must only be started after the WLUN pointer has
8629+ * been initialized by ufshcd_scsi_add_wlus().
8630+ */
8631+ schedule_delayed_work (& hba -> ufs_rtc_update_work ,
8632+ msecs_to_jiffies (UFS_RTC_UPDATE_INTERVAL_MS ));
8633+
86268634 ufs_bsg_probe (hba );
86278635 scsi_scan_host (hba -> host );
86288636
@@ -8717,8 +8725,6 @@ static int ufshcd_post_device_init(struct ufs_hba *hba)
87178725 ufshcd_force_reset_auto_bkops (hba );
87188726
87198727 ufshcd_set_timestamp_attr (hba );
8720- schedule_delayed_work (& hba -> ufs_rtc_update_work ,
8721- msecs_to_jiffies (UFS_RTC_UPDATE_INTERVAL_MS ));
87228728
87238729 if (!hba -> max_pwr_info .is_valid )
87248730 return 0 ;
You can’t perform that action at this time.
0 commit comments