]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: ufs: core: Allocate the SCSI host earlier
authorBart Van Assche <bvanassche@acm.org>
Fri, 31 Oct 2025 20:39:26 +0000 (13:39 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 22:02:33 +0000 (17:02 -0500)
commitf46b9a595fa95c82e3279b687869cac249838e96
tree5b6782126518feb42341a60ad0d720bbe059af27
parente8ea985a8314e0170124476e0fa5a5da868a7a40
scsi: ufs: core: Allocate the SCSI host earlier

Call ufshcd_add_scsi_host() before any UPIU commands are sent to the UFS
device. This patch prepares for letting ufshcd_add_scsi_host() allocate
memory for both SCSI and UPIU commands.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251031204029.2883185-19-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c