Commit 2252e36
committed
i2c: i2c_ll_stm32_v2: fix NACK handling for STM32L4
On STM32F0/F3/L0/L4, a NACK on the I2C bus triggers an I2C event
interrupt. But the current logic expects an I2C error interrupt.
As a result, the NACK interrupt is not acknowledged and leads to
an IRQ storm which freezes the system.
Move the NACK handling code to the event ISR.
Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>1 parent 06840af commit 2252e36
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
| |||
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
0 commit comments