Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2012 18:20:07 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-hackers@freebsd.org, geoffrey levand <geoffrey.levand@mail.ru>
Subject:   Re: How to claim only some of USB interfaces of a composite USB device
Message-ID:  <201209241820.07558.hselasky@c2i.net>
In-Reply-To: <1348410653.373800982@f180.mail.ru>
References:  <1348410653.373800982@f180.mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday 23 September 2012 16:30:53 geoffrey levand wrote:
> Hi,
> 
> i have the following problem.
> I have a composite  USB device with multiple USB interfaces. Some of
> interfaces belong to the Bluetooth device and other to the WLAN device.
> The problem is i want my WLAN driver to claim only the interfaces which
> belong to the WLAN device. But ng_ubt kernel driver claims all interfaces
> for itself beginning with the interface 0. Therefore, my WLAN driver
> doesn't work if ng_ubt is loaded first.
> 
> The second question is, why FreeBSD USB stack calls the match callback of
> my WLAN driver only once with USB interface index 0. Shouldn't it call the
> match callback for each interface on a USB device ? Linux kernel e.g. does
> it per USB interface.
> 
> regards

Hi,

If the interfaces are parented to another interface, they are not probed.

Read the UBT specification at usb.org and provide a patch that will only grab 
bluetooth interfaces.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209241820.07558.hselasky>