scsi: ufs: core: Only call ufshcd_should_inform_monitor() for SCSI commands
authorBart Van Assche <bvanassche@acm.org>
Fri, 31 Oct 2025 20:39:21 +0000 (13:39 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Nov 2025 22:02:32 +0000 (17:02 -0500)
commitae7bf255b10e4c8382faec06f527ba832c18be24
tree5da40f4d4f5ac7aa906c76970da276ac9addb422
parent3e7fff3fee5b7fa1538b2cef023733cf10366a4a
scsi: ufs: core: Only call ufshcd_should_inform_monitor() for SCSI commands

ufshcd_should_inform_monitor() only returns 'true' for SCSI commands.
Instead of checking inside ufshcd_should_inform_monitor() whether its
second argument represents a SCSI command, only call this function for
SCSI commands. This patch prepares for removing the lrbp->cmd member.

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