diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2024-11-20 21:26:59 -0500 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2024-11-20 21:26:59 -0500 |
commit | 8e3b6345d113cc917e64b0349dc486b5d8f55e70 (patch) | |
tree | 7489ad65d6f9ff43b9b251bd8828713684afafcf /drivers/ufs/core | |
parent | 128faa1845a2d5b0178b986f3bd18fb38cc08cc2 (diff) | |
parent | 54c814c8b23bc7617be3d46abdb896937695dbfa (diff) | |
download | lwn-8e3b6345d113cc917e64b0349dc486b5d8f55e70.tar.gz lwn-8e3b6345d113cc917e64b0349dc486b5d8f55e70.zip |
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 <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/core')
-rw-r--r-- | drivers/ufs/core/ufshcd.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c index e338867bc96c..8135a6dad7c6 100644 --- a/drivers/ufs/core/ufshcd.c +++ b/drivers/ufs/core/ufshcd.c @@ -8623,6 +8623,14 @@ static int ufshcd_add_lus(struct ufs_hba *hba) ufshcd_init_clk_scaling_sysfs(hba); } + /* + * The RTC update code accesses the hba->ufs_device_wlun->sdev_gendev + * pointer and hence must only be started after the WLUN pointer has + * been initialized by ufshcd_scsi_add_wlus(). + */ + schedule_delayed_work(&hba->ufs_rtc_update_work, + msecs_to_jiffies(UFS_RTC_UPDATE_INTERVAL_MS)); + ufs_bsg_probe(hba); scsi_scan_host(hba->host); @@ -8717,8 +8725,6 @@ static int ufshcd_post_device_init(struct ufs_hba *hba) ufshcd_force_reset_auto_bkops(hba); ufshcd_set_timestamp_attr(hba); - schedule_delayed_work(&hba->ufs_rtc_update_work, - msecs_to_jiffies(UFS_RTC_UPDATE_INTERVAL_MS)); if (!hba->max_pwr_info.is_valid) return 0; |