Subject: Re: kern/34070: btconfig: SIOCSBTFLAGS: Resource temporarily unavailable
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: netbsd-bugs
Date: 11/17/2006 23:50:02
The following reply was made to PR kern/34070; it has been noted by GNATS.
From: Berndt Josef Wulf <wulf@ping.net.au>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, wulf@netbsd.org
Subject: Re: kern/34070: btconfig: SIOCSBTFLAGS: Resource temporarily unavailable
Date: Sat, 18 Nov 2006 11:19:50 +1030
This got me further too, but issuing btconfig ubt0 inquery will cause kernel
panic.
cheerio Berndt
On Saturday 18 November 2006 04:55, Matthias Drochner wrote:
> 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--
Thanks for the patch. This works for me too!
barossa: {3} btconfig -l
ubt0
barossa: {4} btconfig ubt0
ubt0: bdaddr 00:16:41:57:68:6a flags 0x3<UP,RUNNING>
num_cmd = 1
num_acl = 8, acl_mtu = 384
num_sco = 8, sco_mtu = 64
cheerio Berndt