]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: core: Move code out of ufshcd_wait_for_dev_cmd()
authorBart Van Assche <bvanassche@acm.org>
Fri, 31 Oct 2025 20:39:35 +0000 (13:39 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 22:02:34 +0000 (17:02 -0500)
commita11c015c8a4fff99cf91a5cbc9789cc7a72b3ccf
tree31c1eea4ace0763e3a7246592ad5471a5afe33c1
parent4b6c0d9cca359d1d2f666e14c42482befe5c4829
scsi: ufs: core: Move code out of ufshcd_wait_for_dev_cmd()

The ufshcd_dev_cmd_completion() call is useful for some but not for all
ufshcd_wait_for_dev_cmd() callers. Hence, remove the
ufshcd_dev_cmd_completion() call from ufshcd_wait_for_dev_cmd() and move
it past the ufshcd_issue_dev_cmd() calls where appropriate. This makes
it easier to detect timeout errors for UPIU frames submitted through the
BSG interface.

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