scsi: ufs: core: Reuse exec_dev_cmd
authorAvri Altman <avri.altman@wdc.com>
Sat, 9 Mar 2024 08:11:00 +0000 (10:11 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 25 Mar 2024 20:50:22 +0000 (16:50 -0400)
commit71aabb747d5f90c1b10b55eabdadd97529bfe165
tree2210d52742ef5046ec8d5b1698378dc18dc7bd0d
parentddfd7f051f4e14959b893ac8ba7c081a0691197c
scsi: ufs: core: Reuse exec_dev_cmd

Move out the actual command issue from exec_dev_cmd it can be used
elsewhere.  While at it, remove a redundant "lrbp->cmd = NULL" assignment.

Also, the device management commands that are originated from the
ufs-bsg code path, are being traced now, which wasn't the case before.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20240309081104.5006-3-avri.altman@wdc.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c