]> www.infradead.org Git - users/jedix/linux-maple.git/commit
can: m_can: disable_all_interrupts, not clear active_interrupts
authorMarkus Schneider-Pargmann <msp@baylibre.com>
Mon, 5 Aug 2024 18:30:45 +0000 (20:30 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 6 Aug 2024 07:25:30 +0000 (09:25 +0200)
commita572fea86c9b06cd3e6e89d79d565b52cb7e7cff
tree32dbbf96c7340a2cf9aec608121e2f43d7c9d765
parent4d5159bfafa8d1a205d8213b7434e0402588b9ed
can: m_can: disable_all_interrupts, not clear active_interrupts

active_interrupts is a cache for the enabled interrupts and not the
global masking of interrupts. Do not clear this variable otherwise we
may loose the state of the interrupts.

Fixes: 07f25091ca02 ("can: m_can: Implement receive coalescing")
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20240805183047.305630-6-msp@baylibre.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c