All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: Ben Collins <ben.collins@ubuntu.com>
Cc: Roland Dreier <rdreier@cisco.com>,
	Linus Torvalds <torvalds@osdl.org>,
	linux-kernel@vger.kernel.org,
	linux-usb-devel@lists.sourceforge.net,
	Ganesh Varadarajan <ganesh@veritas.com>
Subject: Re: [linux-usb-devel] [PATCH] Remove duplicate ID in ipaq driver
Date: Thu, 17 May 2007 06:32:36 -0700	[thread overview]
Message-ID: <20070517133236.GA16009@kroah.com> (raw)
In-Reply-To: <1179406940.6510.90.camel@cunning>

On Thu, May 17, 2007 at 09:02:20AM -0400, Ben Collins wrote:
> On Thu, 2007-05-17 at 05:43 -0700, Greg KH wrote:
> > On Wed, May 16, 2007 at 05:36:48PM -0400, Ben Collins wrote:
> > > On Wed, 2007-05-16 at 13:59 -0700, Roland Dreier wrote:
> > > > >  	/* The first entry is a placeholder for the insmod-specified device */
> > > >  > -	{ USB_DEVICE(0x049F, 0x0003) },
> > > > 
> > > > Is it obvious why this patch is correct?  Especially given the
> > > > comment just before the line you delete, and the code
> > > > 
> > > > 	if (vendor) {
> > > > 		ipaq_id_table[0].idVendor = vendor;
> > > > 		ipaq_id_table[0].idProduct = product;
> > > > 	}
> > > > 
> > > > in ipaq_init()?
> > > 
> > > My mistake, quick on the patching going through this dupe list.
> > > 
> > > Might I add that this is terrible use of the device table, though.
> > > Clutters userspace, and adds processing to module-init-tools programs.
> > 
> > It's a hold-over from the times when we didn't have the sysfs "add a new
> > id" interface for usb-serial drivers, which only recently was created.
> > 
> > So we just have to live with it, and the infinitesimal speed hit it
> > creates :)
> 
> Any objection to adding it to planned-for-removal and spitting out a
> printk when someone uses the "feature"?

No, it's a module parameter and it's much easier to use for some systems
than the sysfs file way.  It's just not worth breaking userspace APIs
for no good reason.

thanks,

greg k-h

  parent reply	other threads:[~2007-05-17 13:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-16 20:54 [PATCH] Remove duplicate ID in ipaq driver Ben Collins
2007-05-16 20:59 ` Roland Dreier
2007-05-16 21:36   ` Ben Collins
2007-05-17 12:43     ` [linux-usb-devel] " Greg KH
2007-05-17 13:02       ` Ben Collins
2007-05-17 13:32         ` Valdis.Kletnieks
2007-05-17 13:32         ` Greg KH [this message]
2007-05-16 21:04 ` Jiri Slaby

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=20070517133236.GA16009@kroah.com \
    --to=greg@kroah.com \
    --cc=ben.collins@ubuntu.com \
    --cc=ganesh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=rdreier@cisco.com \
    --cc=torvalds@osdl.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 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.