From: Andri Yngvason <andri.yngvason@marel.com>
To: Wolfgang Grandegger <wg@grandegger.com>
Cc: linux-can@vger.kernel.org, mkl@pengutronix.de
Subject: Re: [PATCH v3 0/4] Consolidate and unify state change handling
Date: Wed, 26 Nov 2014 11:22:20 +0000 [thread overview]
Message-ID: <20141126112220.8026.88806@shannon> (raw)
In-Reply-To: <9f68402e21956c1c56c495f49bc693dd@grandegger.com>
Quoting Wolfgang Grandegger (2014-11-26 10:29:01)
> On Wed, 26 Nov 2014 10:12:19 +0000, Andri Yngvason
> <andri.yngvason@marel.com> wrote:
> > Quoting Wolfgang Grandegger (2014-11-25 21:07:11)
> >> On 11/25/2014 04:51 PM, Andri Yngvason wrote:
...
> >> > I need this because of missing interrupts from the controller and
> >> > failure to
> >> > address this in the driver. This could be fixed by always leaving the
> >> > bus error
> >> > interrupts on and polling the state on tx. I'm not sure if either of
> >> > those are a
> >> > good idea.
> >>
> >> You should fix your Flexcan platform binding.
> >>
> > I'm not quite sure what that means. Should I add the tx-polling and
> leave
> > the
> > interrupts on, or do you think there might be something wrong with my
> > device
> > tree or architecture specific code?
> >
> > The imx6 manual doesn't really say explicitly which "events" will
> trigger
> > interrupts; it only says which interrupts can be turned on/off. I'm
> > assuming
> > those are the available interrupts. State transition interrupts are not
> > among
> > them (except for "warning" which isn't really a state, and bus-off).
>
> I'm referring to the "[TR]WRN_INT not connected" bug mentioned here:
>
> http://lxr.free-electrons.com/source/drivers/net/can/flexcan.c#L162
>
> If FLEXCAN_HAS_BROKEN_ERR_STATE is set, the bus error interrupt will not
> be disabled. But I'm somehow surprised that tat error shows up in an
> i.MX6.
>
WRN_INT is only for the <96 to >=96 transition, so it doesn't really help.
--
Andri
prev parent reply other threads:[~2014-11-26 11:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-22 17:41 [PATCH v3 0/4] Consolidate and unify state change handling Andri Yngvason
2014-11-23 19:35 ` Wolfgang Grandegger
2014-11-25 15:51 ` Andri Yngvason
2014-11-25 21:07 ` Wolfgang Grandegger
2014-11-26 10:12 ` Andri Yngvason
2014-11-26 10:29 ` Wolfgang Grandegger
2014-11-26 11:22 ` Andri Yngvason [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=20141126112220.8026.88806@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