Skip to content

Commit 8e3b634

Browse files
Merge branch '6.12/scsi-fixes' into 6.13/scsi-staging
Pull in the fixes branch to resolve conflict in UFS core. Signed-off-by: Martin K. Petersen <[email protected]>
2 parents 128faa1 + 54c814c commit 8e3b634

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

drivers/scsi/sd_zbc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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;

drivers/ufs/core/ufshcd.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)