Skip to content

Commit a71e2ac

Browse files
seebeWolfram Sang
authored andcommitted
i2c: riic: Clear NACK in tend isr
The NACKF flag should be cleared in INTRIICNAKI interrupt processing as description in HW manual. This issue shows up quickly when PREEMPT_RT is applied and a device is probed that is not plugged in (like a touchscreen controller). The result is endless interrupts that halt system boot. Fixes: 310c18a ("i2c: riic: add driver") Cc: [email protected] Reported-by: Chien Nguyen <[email protected]> Signed-off-by: Chris Brandt <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 127068a commit a71e2ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/i2c-riic.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ static irqreturn_t riic_tend_isr(int irq, void *data)
202202
if (readb(riic->base + RIIC_ICSR2) & ICSR2_NACKF) {
203203
/* We got a NACKIE */
204204
readb(riic->base + RIIC_ICDRR); /* dummy read */
205+
riic_clear_set_bit(riic, ICSR2_NACKF, 0, RIIC_ICSR2);
205206
riic->err = -ENXIO;
206207
} else if (riic->bytes_left) {
207208
return IRQ_NONE;

0 commit comments

Comments
 (0)