All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: linux-can@vger.kernel.org
Cc: kernel@pengutronix.de, "Rost, Martin" <Martin.Rost@tonfunk.de>,
	Alexander Shiyan <shc_work@mail.ru>
Subject: Re: [PATCH] can: mp251x: fix mcp2515 stops receiving problem
Date: Mon, 12 May 2014 19:07:08 +0200	[thread overview]
Message-ID: <5370FFBC.6040008@pengutronix.de> (raw)
In-Reply-To: <1399914360-7146-1-git-send-email-mkl@pengutronix.de>

[-- Attachment #1: Type: text/plain, Size: 1336 bytes --]

On 05/12/2014 07:06 PM, Marc Kleine-Budde wrote:
> From: "Rost, Martin" <Martin.Rost@tonfunk.de>
> 
> The mcp2515 sometimes seems to trigger an interrupt with the corresponding
> register not being set yet. This makes the driver exit the interrupt because
> there is obviously nothing to do, but the interrupt line is kept low.
> Therefore the driver does not see any more interrupts until the chip is reset
> (via interface down/up).
> 
> This patch changes the IST to first check the IRQ registers, and wait up to 10
> ms if an event really occurrs. If the IRQ register is still empty after 10ms,
> a kernel message gets issued. The IST loop is rearranged to evaluate the IRQ
> register at the last moment before exiting, to not miss a late irq event.
> 
> Not-Signed-off-by: Martin Rost <Martin.Rost@tonfunk.de>

Martin, can I add your S-o-b [1]?

> Cc: Alexander Shiyan <shc_work@mail.ru>
> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

[1]
http://lxr.free-electrons.com/source/Documentation/SubmittingPatches#L307

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

  reply	other threads:[~2014-05-12 17:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-12 17:06 [PATCH] can: mp251x: fix mcp2515 stops receiving problem Marc Kleine-Budde
2014-05-12 17:07 ` Marc Kleine-Budde [this message]
  -- strict thread matches above, loose matches on Subject: below --
2014-05-12 17:17 Rost, Martin

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=5370FFBC.6040008@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=Martin.Rost@tonfunk.de \
    --cc=kernel@pengutronix.de \
    --cc=linux-can@vger.kernel.org \
    --cc=shc_work@mail.ru \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.