]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: ufs: core: Remove WARN_ON_ONCE() call from ufshcd_uic_cmd_compl()
authorBart Van Assche <bvanassche@acm.org>
Fri, 15 Aug 2025 15:58:24 +0000 (08:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Aug 2025 02:15:18 +0000 (22:15 -0400)
commite5203d89d59bfcbe1f348aa0d2dc4449a8ba644c
tree1e7f3f48ffe15bf2a30143c9fbe379fd235b6c88
parenteabcac808ca3ee9878223d4b49b750979029016b
scsi: ufs: core: Remove WARN_ON_ONCE() call from ufshcd_uic_cmd_compl()

The UIC completion interrupt may be disabled while an UIC command is
being processed. When the UIC completion interrupt is reenabled, an UIC
interrupt is triggered and the WARN_ON_ONCE(!cmd) statement is hit.
Hence this patch that removes this kernel warning.

Fixes: fcd8b0450a9a ("scsi: ufs: core: Make ufshcd_uic_cmd_compl() easier to analyze")
Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20250815155842.472867-3-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/core/ufshcd.c