Subject: Re: kern/34070: btconfig: SIOCSBTFLAGS: Resource temporarily
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: netbsd-bugs
Date: 11/17/2006 18:25:03
The following reply was made to PR kern/34070; it has been noted by GNATS.

From: Matthias Drochner <M.Drochner@fz-juelich.de>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org, wulf@NetBSD.org, plunky@rya-online.net
Subject: Re: kern/34070: btconfig: SIOCSBTFLAGS: Resource temporarily 
 unavailable
Date: Fri, 17 Nov 2006 19:20:29 +0100

 This is a multipart MIME message.
 
 --==_Exmh_13776008535290
 Content-Type: text/plain; charset=us-ascii
 
 
 With the appended patch the ubt initializes for me, even if usb2/ehci
 is used by the host controller.
 The "16" happens to be the "wMaxPacketSize" in the endpoint descriptor;
 I'm not sure yet whether it should be the driver's duty to check that
 or the framework should care.
 I'm also not sure whether the builtin Dell hub is somehow limited or
 the translation problems are to be expected under the timing/size conditions
 imposed by the ubt driver.
 
 best regards
 Matthias
 
 
 
 --==_Exmh_13776008535290
 Content-Type: text/plain ; name="btilen.txt"; charset=us-ascii
 Content-Description: btilen.txt
 Content-Disposition: attachment; filename="btilen.txt"
 
 Index: ubt.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/usb/ubt.c,v
 retrieving revision 1.19
 diff -u -p -r1.19 ubt.c
 --- ubt.c	12 Oct 2006 01:31:59 -0000	1.19
 +++ ubt.c	17 Nov 2006 18:08:44 -0000
 @@ -832,7 +832,7 @@ ubt_enable(struct hci_unit *unit)
  				  &sc->sc_evt_pipe,
  				  sc,
  				  sc->sc_evt_buf,
 -				  UBT_BUFSIZ_EVENT,
 +				  16 /*UBT_BUFSIZ_EVENT*/,
  				  ubt_recv_event,
  				  UBT_EVENT_INTERVAL);
  	if (err != USBD_NORMAL_COMPLETION) {
 
 --==_Exmh_13776008535290--