]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Improve ufshcd_mcq_sq_cleanup()
authorBart Van Assche <bvanassche@acm.org>
Tue, 22 Oct 2024 19:31:02 +0000 (12:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Oct 2024 19:01:11 +0000 (15:01 -0400)
commit2c73fb138da587597c2b02e72dcbeae18af60f4e
treea08959dcfdd15d47ca45ad4558463cac39a7d571
parent2a36646012fc58e6262435ff5d2c8c97456c253f
scsi: ufs: core: Improve ufshcd_mcq_sq_cleanup()

From the UFSHCI specification: "CleanUp Command Return Code (RTC): host
controller sets this return code to provide more details of the cleanup
process. It is valid only when CUS is 1." Hence, do not read RTC if the
CUS bitfield is zero.

Cc: Bao D. Nguyen <quic_nguyenb@quicinc.com>
Fixes: 8d7290348992 ("scsi: ufs: mcq: Add supporting functions for MCQ abort")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20241022193130.2733293-7-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufs-mcq.c