LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Vincent ETIENNE <ve@vetienne.net>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Greg KH <greg@kroah.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	Paul Walmsley <paul@booyaka.com>
Subject: Re: USB HID bug (was [PROBLEM] Bonding driver in linux-2.6.21-rc6-mm1)
Date: Sat, 28 Apr 2007 09:21:18 +0200	[thread overview]
Message-ID: <200704280921.19265.ve@vetienne.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0704280024170.7370@jikos.suse.cz>

Le Saturday 28 April 2007 00:42:45 Jiri Kosina, vous avez écrit :
> On Fri, 27 Apr 2007, Greg KH wrote:
> > >  BUG: at drivers/hid/usbhid/hid-quirks.c:480 usbhid_exists_dquirk()
>
> [ .. stacktraces stripped .. ]
>
> > Jiri, any thoughts about this?  This looks like it comes from your tree
> > as 2.6.21 doesn't have the drivers/hid/usbhid/ directory...
>
> Paul (author of the corresponding patch) added to CC.
>
> This BUG (it's in fact a warning) is this one:
>
>        WARN_ON(idVendor == 0);
>
> I now don't immediately see how this could happen - the vendor ID seems to
> be propagated properly from hid_probe() (nothing has been changed in this
> codepath), so this would mean that hid_probe() has been passed
> usb_interface for which
> le16_to_cpu(interface_to_usbdev(intf).dev->descriptor.idVendor) is equal
> to zero ...  and this definitely shouldn't happen for any sane device
> (could the original poster please verify with lsusb, just to be 100%
> sure?).

You could download the result of lsusb -vvv from 
http://mail1.vetienne.net/linux/lsusb.log

>
> It would also help if the original poster, who is able to reproduce this
> WARN_ON, would verify whether hid_probe() is really being passed such
> strange usb_interface from upper USB layer ... please see the patch below,
> and send me the output if possible.
>
> Paul, do you have any idea? In fact, what was your reason for putting this
> WARN_ON() there? Did you ever meet any condition when idVendor == 0
> appears there?
>
> Thanks.
>
> diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c
> index f929dee..2a77d8b 100644
> --- a/drivers/hid/usbhid/hid-core.c
> +++ b/drivers/hid/usbhid/hid-core.c
> @@ -984,6 +984,8 @@ static int hid_probe(struct usb_interfac
>  	dbg("HID probe called for ifnum %d",
>  			intf->altsetting->desc.bInterfaceNumber);
>
> +	printk(KERN_DEBUG "DEBUG - hid_probe: idVendor: %x\n",
> +			le16_to_cpu(interface_to_usbdev(intf)->descriptor.idVendor));
>  	if (!(hid = usb_hid_configure(intf)))
>  		return -ENODEV;

With your patch it seems like idVendor passed is 0. You could see it there ;

http://mail1.vetienne.net/linux/dmesg.2.6.21-rc7-mm2+patch-usbhid

I could confirm that the keyboard is working ( yesterday i was just behind the 
box due to test on the network ). But i don't remember if the keyboard is USB 
or PS2 (i only have ssh access to the box for the next 3/4 days)

  Vincent

  parent reply	other threads:[~2007-04-28  7:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26 18:58 [PROBLEM] Bonding driver in linux-2.6.21-rc6-mm1 Vincent ETIENNE
2007-04-26 20:27 ` Chris Snook
2007-04-26 20:44   ` [Bonding-devel] " Jay Vosburgh
2007-04-26 21:43     ` Vincent ETIENNE
2007-05-09 18:47     ` Vincent ETIENNE
2007-04-27  4:11 ` Andrew Morton
2007-04-27  9:25   ` VE (HOME)
2007-04-27 19:20     ` Andrew Morton
2007-04-27 21:18     ` USB HID bug (was [PROBLEM] Bonding driver in linux-2.6.21-rc6-mm1) Greg KH
2007-04-27 22:42       ` Jiri Kosina
2007-04-27 22:55         ` Jiri Kosina
2007-04-27 23:24         ` Paul Walmsley
2007-04-28  7:21         ` Vincent ETIENNE [this message]
2007-04-28 14:07           ` Paul Walmsley
2007-04-28 15:06           ` Jiri Kosina
2007-04-28 19:50             ` [linux-usb-devel] " Alan Stern
2007-04-28 20:43               ` Vincent ETIENNE
2007-04-29 11:18                 ` Jiri Kosina
2007-04-29 13:40                   ` Vincent ETIENNE
     [not found] ` <200704272205.29131.ve@vetienne.net>
     [not found]   ` <20070427153237.03f3b59c.akpm@linux-foundation.org>
2007-04-28 21:10     ` [PROBLEM] Bonding driver in linux-2.6.21-rc6-mm1 Vincent ETIENNE

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=200704280921.19265.ve@vetienne.net \
    --to=ve@vetienne.net \
    --cc=akpm@linux-foundation.org \
    --cc=greg@kroah.com \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul@booyaka.com \
    --subject='Re: USB HID bug (was [PROBLEM] Bonding driver in linux-2.6.21-rc6-mm1)' \
    /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

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).