From: Markus Schneider-Pargmann <msp@baylibre.com>
To: "Chandrasekar Ramakrishnan" <rcsekar@samsung.com>,
"Marc Kleine-Budde" <mkl@pengutronix.de>,
"Vincent Mailhol" <mailhol.vincent@wanadoo.fr>,
"David S . Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Martin Hundebøll" <martin@geanix.com>,
"Markus Schneider-Pargmann" <msp@baylibre.com>,
"Judith Mendez" <jm@ti.com>, "Tony Lindgren" <tony@atomide.com>,
"Simon Horman" <horms@kernel.org>
Cc: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>,
Linux regression tracking <regressions@leemhuis.info>,
linux-can@vger.kernel.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 6/7] can: m_can: Reset cached active_interrupts on start
Date: Mon, 5 Aug 2024 20:30:46 +0200 [thread overview]
Message-ID: <20240805183047.305630-7-msp@baylibre.com> (raw)
In-Reply-To: <20240805183047.305630-1-msp@baylibre.com>
To force writing the enabled interrupts, reset the active_interrupts
cache.
Fixes: 07f25091ca02 ("can: m_can: Implement receive coalescing")
Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com>
---
drivers/net/can/m_can/m_can.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c
index 7910ee5c5797..69a7cbce19b4 100644
--- a/drivers/net/can/m_can/m_can.c
+++ b/drivers/net/can/m_can/m_can.c
@@ -1541,6 +1541,7 @@ static int m_can_chip_config(struct net_device *dev)
else
interrupts &= ~(IR_ERR_LEC_31X);
}
+ cdev->active_interrupts = 0;
m_can_interrupt_enable(cdev, interrupts);
/* route all interrupts to INT0 */
--
2.45.2
next prev parent reply other threads:[~2024-08-05 18:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-05 18:30 [PATCH v2 0/7] can: m_can: Fix polling and other issues Markus Schneider-Pargmann
2024-08-05 18:30 ` [PATCH v2 1/7] can: m_can: Reset coalescing during suspend/resume Markus Schneider-Pargmann
2024-08-05 18:30 ` [PATCH v2 2/7] can: m_can: Remove coalesing disable in isr during suspend Markus Schneider-Pargmann
2024-08-05 18:30 ` [PATCH v2 3/7] can: m_can: Remove m_can_rx_peripheral indirection Markus Schneider-Pargmann
2024-08-05 18:30 ` [PATCH v2 4/7] can: m_can: Do not cancel timer from within timer Markus Schneider-Pargmann
2024-08-05 18:30 ` [PATCH v2 5/7] can: m_can: disable_all_interrupts, not clear active_interrupts Markus Schneider-Pargmann
2024-08-05 18:30 ` Markus Schneider-Pargmann [this message]
2024-08-05 18:30 ` [PATCH v2 7/7] can: m_can: Limit coalescing to peripheral instances Markus Schneider-Pargmann
2024-08-07 8:10 ` [PATCH v2 0/7] can: m_can: Fix polling and other issues Matthias Schiffer
2024-08-07 11:33 ` Markus Schneider-Pargmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240805183047.305630-7-msp@baylibre.com \
--to=msp@baylibre.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jm@ti.com \
--cc=kuba@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailhol.vincent@wanadoo.fr \
--cc=martin@geanix.com \
--cc=matthias.schiffer@ew.tq-group.com \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rcsekar@samsung.com \
--cc=regressions@leemhuis.info \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®