Subject: Re: Belkin Bluetooth vs aue vs ubt
To: Iain Hibbert <plunky@rya-online.net>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: tech-kern
Date: 03/08/2007 21:37:26
plunky@rya-online.net said:
> if_aue.c:
> 	if (uaa->iface != NULL)
> 		return (UMATCH_NONE); 

That's actually a bug in that driver as I see it. It should work
as well with an "==" at that point.
The fact that we have that stuff in the usb driver probe functions
is a major annoyance. It is due to the fact that the usb driver
interface doesn't distinguish cleanly between drivers dealing
with a device as a whole or drivers just handling one "interface"
(in terms of the usb descriptor structure).

I'm playing with patches to seperate this (which would also help
a lot for driver LKMs) for a while; the most serious problems are
-drivers which are in-between, ie assuming that a device was
 configured (in terms of a USB "set configuration" request)
 but matching by vendor/device ID (which assumes that they take over
 the device completely), and devices using interfaces which they
 didn't match at
-loss of compatibility to the other BSDs

best regards
Matthias