From: christian pellegrin <chripell-VaTbYqLCNhc@public.gmane.org>
To: Wolfgang Grandegger <wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
Cc: socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org,
netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH net-next-2.6] can: mcp251x: Move to threaded interrupts instead of workqueues.
Date: Sun, 31 Jan 2010 18:39:35 +0100 [thread overview]
Message-ID: <cabda6421001310939g4acd22d2ua8dab4de3322f90e@mail.gmail.com> (raw)
In-Reply-To: <4B648D3F.30909-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
On Sat, Jan 30, 2010 at 8:49 PM, Wolfgang Grandegger <wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org> wrote:
> Hi Christian,
>
Hi,
>
> Could you please truncate the lines to the usual 72 (or 80) characters
> per line?
>
ack, just reconfigured nano!
>> +static irqreturn_t mcp251x_can_ist(int irq, void *dev_id);
>> +static void mcp251x_restart_work_handler(struct work_struct *ws);
>> +static void mcp251x_tx_work_handler(struct work_struct *ws);
>
> Any chance to get rid of these forward declarations (by reordering them)?
>
ack, I was trying to minimize patch size so the reason for not moving
code. I fixed it.
>> + * This message is worrisome (because it points out
>> + * something wrong with locking logic) if seen when
>> + * there is no bus-off recovery going on.
>> + */
>
> Before it calls netif_carrier_on, it calls the drivers "do_set_mode"
> callback. See:
>
> http://lxr.linux.no/#linux+v2.6.32/drivers/net/can/dev.c#L383
>
> Is there a way to clear the TX logic in the "do_set_mode" callback?
>
ack, sorry saw this just now
>> + dev_info(&net->dev,
>> + "cannot allocate error skb\n");
>
> dev_err?
>
ack
>> if (priv->can.state == CAN_STATE_BUS_OFF) {
>> mcp251x_clean(net);
>> netif_wake_queue(net);
>> - return;
>> + goto restart_work_unlock;
>> }
>
> } else { ? To get rid of the label.
>
ack. I realized that netif_wake_queue here is wrong too or at least
meaningless: the carrier of the can network interface is declared down
so we shouldn't reschedule the tx queue anyway. I took it out and
retested without it.
--
Christian Pellegrin, see http://www.evolware.org/chri/
"Real Programmers don't play tennis, or any other sport which requires
you to change clothes. Mountain climbing is OK, and Real Programmers
wear their climbing boots to work in case a mountain should suddenly
spring up in the middle of the computer room."
next prev parent reply other threads:[~2010-01-31 17:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-30 13:19 [PATCH net-next-2.6] can: mcp251x: Move to threaded interrupts instead of workqueues Christian Pellegrin
[not found] ` <1264857564-3917-1-git-send-email-chripell-VaTbYqLCNhc@public.gmane.org>
2010-01-30 19:49 ` Wolfgang Grandegger
[not found] ` <4B648D3F.30909-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2010-01-31 17:39 ` christian pellegrin [this message]
[not found] ` <cabda6421001310939g4acd22d2ua8dab4de3322f90e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-31 17:43 ` [PATCH net-next-2.6 v2] " Christian Pellegrin
[not found] ` <1264959793-1797-1-git-send-email-chripell-VaTbYqLCNhc@public.gmane.org>
2010-02-01 7:10 ` christian pellegrin
2010-02-02 10:00 ` Wolfgang Grandegger
2010-02-03 7:23 ` christian pellegrin
[not found] ` <cabda6421002022323m6ea676afu6c73843280b75e24-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-03 7:49 ` Wolfgang Grandegger
[not found] ` <4B692A8D.2040000-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org>
2010-02-03 17:39 ` christian pellegrin
[not found] ` <cabda6421002030939w3788a40en38955d31dd765583-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-02-03 17:39 ` [PATCH net-next-2.6 v3] " Christian Pellegrin
[not found] ` <1265218794-25808-1-git-send-email-chripell-VaTbYqLCNhc@public.gmane.org>
2010-02-03 20:14 ` Wolfgang Grandegger
2010-02-04 4:33 ` David Miller
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=cabda6421001310939g4acd22d2ua8dab4de3322f90e@mail.gmail.com \
--to=chripell-vatbyqlcnhc@public.gmane.org \
--cc=netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org \
--cc=wg-5Yr1BZd7O62+XT7JhA+gdA@public.gmane.org \
/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).