[PATCH 08/11] crypto: ccp - handle only supported interrupts in v5 irq bh
From: Depei Yang
Date: Wed Nov 25 2026 - 02:47:12 EST
The Hygon CCP reports INT_EMPTY_QUEUE in the interrupt status register,
which SUPPORTED_INTERRUPTS does not include. Treating it as a
completion makes the command queue thread observe a spurious
completion. Only process the bits that the driver enables.
AMD hardware has not been observed to report this bit; for the status
values it produces the new check is a no-op.
Fixes: 6263b51eb319 ("crypto: ccp - Change ISR handler method for a v5 CCP")
Cc: stable@xxxxxxxxxxxxxxx
Reviewed-by: Shan Chen <chenshan@xxxxxxxx>
Tested-by: Yongwei Xu <xuyongwei@xxxxxxxx>
Signed-off-by: Depei Yang <yangdepei@xxxxxxxx>
---
drivers/crypto/ccp/ccp-dev-v5.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c
index 34832b830785..d2586625700b 100644
--- a/drivers/crypto/ccp/ccp-dev-v5.c
+++ b/drivers/crypto/ccp/ccp-dev-v5.c
@@ -792,7 +792,7 @@ static void ccp5_irq_bh(unsigned long data)
status = ioread32(cmd_q->reg_interrupt_status);
- if (status) {
+ if (status & SUPPORTED_INTERRUPTS) {
cmd_q->int_status = status;
cmd_q->q_status = ioread32(cmd_q->reg_status);
cmd_q->q_int_status = ioread32(cmd_q->reg_int_status);
--
2.34.1