[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0704271651260.21519@utopia.booyaka.com>
Date: Fri, 27 Apr 2007 17:24:24 -0600 (MDT)
From: Paul Walmsley <paul@...yaka.com>
To: Jiri Kosina <jkosina@...e.cz>
cc: Greg KH <greg@...ah.com>, "VE \(HOME\)" <ve@...ienne.net>,
Andrew Morton <akpm@...ux-foundation.org>,
Linux Kernel <linux-kernel@...r.kernel.org>, fubar@...ibm.com
Subject: Re: USB HID bug (was [PROBLEM] Bonding driver in linux-2.6.21-rc6-mm1)
Hi Jiri,
On Sat, 28 Apr 2007, Jiri Kosina wrote:
> Paul, do you have any idea? In fact, what was your reason for putting this
> WARN_ON() there?
The static quirk list uses idVendor == 0 to mark the end of
hid_blacklist[], so we don't expect any device to have idVendor == 0. If
a device is correctly presenting with idVendor == 0, we need a different
way to terminate that blacklist. Either that or there's an upper-layer
bug, as you write.
Regarding its placement: that WARN_ON() belongs in the static quirk lookup
code, rather than where it is now. Its current location must be a relic
of an earlier patchset.
> Did you ever meet any condition when idVendor == 0 appears there?
No. There shouldn't be any functional problem with removing that
WARN_ON(), and also removing the initial if() in usbhid_lookup_dquirk().
- Paul
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists