From: Wolfgang Grandegger <wg@grandegger.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Keith Jones <keith.rjones@yahoo.com>,
"linux-can@vger.kernel.org" <linux-can@vger.kernel.org>
Subject: Re: flexcan_poll_error_state(struct net_device *dev, u32 reg_esr)
Date: Mon, 11 Jun 2012 16:45:49 +0200 [thread overview]
Message-ID: <4FD6049D.4020004@grandegger.com> (raw)
In-Reply-To: <4FCDB93D.5030007@pengutronix.de>
On 06/05/2012 09:46 AM, Marc Kleine-Budde wrote:
> On 06/05/2012 01:24 AM, Keith Jones wrote:
>> My kernel does not have "flexcan_poll_error_state" function in its
>> flexcan.c file. Is the following patch still valid?
>>
>> [RFC PATCH 07/14] can: flexcan: consolidate error state handling.
>
> This patch series hasn't been applied yet.
Right, it's probably from my private gitorious can-next tree... which is
not up-to-date any more. I'm going to delete it... The important patch
fixing the IRQ flooding is:
commit 6e9d554fa6e481a848358c215f129432262123c0
Author: Wolfgang Grandegger <wg@grandegger.com>
Date: Mon Dec 12 16:09:28 2011 +0100
can: flexcan: fix irq flooding by clearing all interrupt sources
As pointed out by Reuben Dowle and Lothar Waßmann, the TWRN_INT,
RWRN_INT, BOFF_INT interrupt sources need to be cleared as well
to avoid interrupt flooding, at least for the Flexcan on i.MX28
SOCs. Furthermore, the interrupts are only cleared, if really one
of those interrupt sources are pending (which is not the case for
rx and tx done).
Cc: Reuben Dowle <Reuben.Dowle@navico.com>
Cc: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Anyway, on a slow system, bus errors can still result in high system
load. But I do not consider the mx53 a slow system.
>> What would a good linux version to obtain a functioning flexcan
>> driver for imx536? My demo board is shipped with 2.6.35. I am able
>> migrate to any version with appropriate patches.
>
> Use v3.4. Your v2.6.35 is probably a freescale kernel, with a freescale
> flexcan driver. The mainline driver should work with mx53.
I agree.
Wolfgang.
prev parent reply other threads:[~2012-06-11 14:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1338849280.43608.YahooMailNeo@web140802.mail.bf1.yahoo.com>
2012-06-04 22:39 ` Flexcan on imx536 Infotainment Keith Jones
2012-06-04 23:24 ` flexcan_poll_error_state(struct net_device *dev, u32 reg_esr) Keith Jones
2012-06-05 7:46 ` Marc Kleine-Budde
2012-06-07 16:29 ` Keith Jones
2012-06-10 17:46 ` Marc Kleine-Budde
2012-06-13 19:35 ` Keith Jones
2012-06-11 14:45 ` Wolfgang Grandegger [this message]
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=4FD6049D.4020004@grandegger.com \
--to=wg@grandegger.com \
--cc=keith.rjones@yahoo.com \
--cc=linux-can@vger.kernel.org \
--cc=mkl@pengutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).