From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 24 16:18:58 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E7A3106566B for ; Mon, 24 Sep 2012 16:18:58 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id BC0268FC08 for ; Mon, 24 Sep 2012 16:18:57 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 322544000; Mon, 24 Sep 2012 18:18:48 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org, geoffrey levand Date: Mon, 24 Sep 2012 18:20:07 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1348410653.373800982@f180.mail.ru> In-Reply-To: <1348410653.373800982@f180.mail.ru> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@ =?iso-8859-1?q?d2+AyewRX=7DmAm=3BYp=0A=09=7CU=5B?=@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y> =?iso-8859-1?q?Y=7Dk1C4TfysrsUI=0A=09-=25GU9V5=5DiUZF=26nRn9mJ=27=3F=26?=>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201209241820.07558.hselasky@c2i.net> Cc: Subject: Re: How to claim only some of USB interfaces of a composite USB device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2012 16:18:58 -0000 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