The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	dbrownell@users.sourceforge.net, Greg KH <greg@kroah.com>
Subject: Re: [PATCH] USB: usbnet uses netif_msg_*() ethtool filtering
Date: Wed, 30 Mar 2005 16:50:17 -0800	[thread overview]
Message-ID: <200503301650.17486.david-b@pacbell.net> (raw)
In-Reply-To: <424B44C3.4040804@pobox.com>

On Wednesday 30 March 2005 4:30 pm, Jeff Garzik wrote:
> Linux Kernel Mailing List wrote:
> > ChangeSet 1.2181.4.72, 2005/03/24 15:31:29-08:00, david-b@pacbell.net
> > 
> > 	[PATCH] USB: usbnet uses netif_msg_*() ethtool filtering
> > 	
> > 	This converts most of the usbnet code to actually use the ethtool
> > 	message flags.  The ASIX code is left untouched, since there are
> > 	a bunch of patches pending there ... that's where the remaining
> > 	handful of "sparse -Wbitwise" warnings come from.
> > 	
> > 	Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
> > 	Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
> 
> It would be nice if people at least CC'd me on net driver patches.

Sorry.  When drivers fit multiple classifications (e.g. USB _and_ NET,
or USB _and_ PCI _and_ PM, etc) it's unfortunately routine that not all
interested parties see them until something hits LKML.  Even when the
changes have significant cross-subsystem impact (these don't).


> netfi_msg_ifdown() is only for __interface__ up/down events; as such, 
> there should be only one message of this type in dev->open(), and one 
> message of this type in dev->stop().

I was going by the only writeup I've ever seen, which doesn't mention
such a rule at all.  The messages you highlighted are compatible with
these rules:  the interface is actually going down at that point.

  http://www.tux.org/hypermail/linux-vortex/2001-Nov/0021.html

If there are other rules, they belong in Documentation/netif-msg.txt
don't they?  That way folk won't be forced to guess.  Or risk
accidentally following the "wrong" set of rules...


> > @@ -3044,7 +3047,7 @@
> >  
> >  	memset(urb->transfer_buffer, 0, urb->transfer_buffer_length);
> >  	status = usb_submit_urb (urb, GFP_ATOMIC);
> > -	if (status != 0)
> > +	if (status != 0 && netif_msg_timer (dev))
> >  		deverr(dev, "intr resubmit --> %d", status);
> >  }
> >  
> 
> this looks more like a debugging message?

It's an error of the "what do I do now??" variety, triggered by
what's effectively a timer callback.  USB interrupt transfers
are polled by the host controller according to a schedule that's
maintained by the HCD.

- Dave


  reply	other threads:[~2005-03-31  0:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200503302319.j2UNJEBP019719@hera.kernel.org>
2005-03-31  0:30 ` [PATCH] USB: usbnet uses netif_msg_*() ethtool filtering Jeff Garzik
2005-03-31  0:50   ` David Brownell [this message]
2005-03-31  1:09     ` Jeff Garzik
2005-03-31  2:10       ` David Brownell

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=200503301650.17486.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=dbrownell@users.sourceforge.net \
    --cc=greg@kroah.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.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