VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Robert Hancock <robert.hancock@calian.com> 2023-06-06 12:25:58 -0600 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-07-19 16:36:50 +0200 commit: 22f127fffe72d3739e7e0cf4cae413102df2e356 parent: 346b1ac789fa8e666d1b564d9b9fa8880644faa0
Commit Summary:
i2c: xiic: Don't try to handle more interrupt events after error
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c
index 8a3d9817cb41..ee6edc963dea 100644
--- a/drivers/i2c/busses/i2c-xiic.c
+++ b/drivers/i2c/busses/i2c-xiic.c
@@ -721,6 +721,8 @@ static irqreturn_t xiic_process(int irq, void *dev_id)
 			wakeup_req = 1;
 			wakeup_code = STATE_ERROR;
 		}
+		/* don't try to handle other events */
+		goto out;
 	}
 	if (pend & XIIC_INTR_RX_FULL_MASK) {
 		/* Receive register/FIFO is full */