hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/drivers/crypto/ccp/psp-dev.c
....@@ -42,6 +42,9 @@
4242 /* Read the interrupt status: */
4343 status = ioread32(psp->io_regs + psp->vdata->intsts_reg);
4444
45
+ /* Clear the interrupt status by writing the same value we read. */
46
+ iowrite32(status, psp->io_regs + psp->vdata->intsts_reg);
47
+
4548 /* invoke subdevice interrupt handlers */
4649 if (status) {
4750 if (psp->sev_irq_handler)
....@@ -50,9 +53,6 @@
5053 if (psp->tee_irq_handler)
5154 psp->tee_irq_handler(irq, psp->tee_irq_data, status);
5255 }
53
-
54
- /* Clear the interrupt status by writing the same value we read. */
55
- iowrite32(status, psp->io_regs + psp->vdata->intsts_reg);
5656
5757 return IRQ_HANDLED;
5858 }