linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andri Yngvason <andri.yngvason@marel.com>
To: Marc Kleine-Budde <mkl@pengutronix.de>,
	Wolfgang Grandegger <wg@grandegger.com>
Cc: linux-can@vger.kernel.org
Subject: Re: [PATCH v4 4/6] can: flexcan: Consolidate and unify state change handling.
Date: Tue, 2 Dec 2014 13:22:43 +0000	[thread overview]
Message-ID: <20141202132243.16198.81379@shannon> (raw)
In-Reply-To: <547DB554.8050407@pengutronix.de>

Quoting Marc Kleine-Budde (2014-12-02 12:49:24)
> On 12/01/2014 08:42 PM, Wolfgang Grandegger wrote:
> [...]
> >> Yes. In any case, the warning interrupt is irrelevant, because we have to poll
> >> the state anyway for the other states. Thus the FLEXCAN_HAS_BROKEN_ERR_STATE
> >> flag is irrelevant.
> > 
> > Well, it improves the situation a little bit. But now I understand your
> > point. Yes the Flexcan core is buggy in this respect.
> 
> Yes, just a bit :) This is probably why they added the m_can core on the
> new imx6 soloX.
>
Interesting! Hopefully they'll make a quadX too. ;)
> 
> >> The question that remains is: Should we enable bus error interrupts for all
> >> flexcan cores or should we ignore the issue and allow the users to work around
> >> it (if they wish) using the berr-reporting flag?
> > 
> > Bus error reporting sometimes really harms and therefore I would leave
> > it as-is. There are also more recent cores and it would be nice to known
> > if they have improved the reporting of state changes further. Anyway,
> > this issue should be addressed by a separate patch series.
> 
> >> There is a middle-ground here: We could enable bus error interrupts when we get
> >> the error-warning interrupt and disable them again when the state has reached
> >> error-active again. In that case we would want to keep the BROKEN_ERR_STATE
> >> flag.
> > 
> > Puh, that's far too sophisticated.
> 
> I agree with Wolfgang. The Bus errors can make a system unresponsive to
> unusable. There is still the bus error limiting patch lurking around,
> which works around this problem.
> 
That's fine by me. It's good enough for me anyway, as is. I might get some
testing done on Saturday. 

--
Andri

  reply	other threads:[~2014-12-02 13:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28 12:12 [PATCH v4 4/6] can: flexcan: Consolidate and unify state change handling Andri Yngvason
2014-11-30 20:23 ` Wolfgang Grandegger
2014-12-01 11:09   ` Andri Yngvason
2014-12-01 11:37     ` Wolfgang Grandegger
2014-12-01 11:51       ` Andri Yngvason
2014-12-01 12:02         ` Wolfgang Grandegger
2014-12-01 12:22           ` Andri Yngvason
2014-12-01 19:42             ` Wolfgang Grandegger
2014-12-02 12:49               ` Marc Kleine-Budde
2014-12-02 13:22                 ` Andri Yngvason [this message]
2014-12-02 13:25                   ` Marc Kleine-Budde

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=20141202132243.16198.81379@shannon \
    --to=andri.yngvason@marel.com \
    --cc=linux-can@vger.kernel.org \
    --cc=mkl@pengutronix.de \
    --cc=wg@grandegger.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;
as well as URLs for NNTP newsgroup(s).