Commit a651261
can: m_can: Reset coalescing during suspend/resume
During resume the interrupts are limited to IR_RF0N and the chip keeps
running. In this case if coalescing is enabled and active we may miss
waterlevel interrupts during suspend. It is safer to reset the
coalescing by stopping the timer and adding IR_RF0N | IR_TEFN to the
interrupts.
This is a theoratical issue and probably extremely rare.
Cc: Martin Hundebøll <martin@geanix.com>
Fixes: 4a94d7e ("can: m_can: allow keeping the transceiver running in suspend")
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20240805183047.305630-2-msp@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>1 parent 06d4ef3 commit a651261
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2430 | 2430 | | |
2431 | 2431 | | |
2432 | 2432 | | |
2433 | | - | |
| 2433 | + | |
| 2434 | + | |
2434 | 2435 | | |
2435 | | - | |
| 2436 | + | |
| 2437 | + | |
2436 | 2438 | | |
2437 | | - | |
| 2439 | + | |
2438 | 2440 | | |
| 2441 | + | |
2439 | 2442 | | |
2440 | 2443 | | |
2441 | 2444 | | |
| |||
2465 | 2468 | | |
2466 | 2469 | | |
2467 | 2470 | | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2468 | 2478 | | |
2469 | 2479 | | |
2470 | 2480 | | |
| |||
0 commit comments