summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2024-10-16 23:12:03 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2024-10-25 22:30:21 +0300
commit69f5eb78d4b0cc978fe83dd2bfea1b67547290bf (patch)
tree4cadb593463e0b0f2439ba8596bc19cf967833c7 /tools/perf/scripts/python/mem-phys-addr.py
parent639e2043b58998b3950ab90413c1b726945058bf (diff)
downloadlinux-69f5eb78d4b0cc978fe83dd2bfea1b67547290bf.tar.xz
scsi: ufs: core: Move the ufshcd_device_init(hba, true) call
ufshcd_async_scan() is called (asynchronously) only by ufshcd_init(). Move the ufshcd_device_init(hba, true) call from ufshcd_async_scan() into ufshcd_init(). This patch prepares for moving both scsi_add_host() calls into ufshcd_add_scsi_host(). Calling ufshcd_device_init() from ufshcd_init() without holding hba->host_sem is safe. This is safe because hba->host_sem serializes core code and sysfs callbacks. The ufshcd_device_init() call is moved before the scsi_add_host() call and hence happens before any SCSI sysfs attributes are created. Since ufshcd_device_init() may call scsi_add_host(), only call scsi_add_host() from ufshcd_add_scsi_host() if the SCSI host has not yet been added by ufshcd_device_init(). Signed-off-by: Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20241016201249.2256266-8-bvanassche@acm.org Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions