Subject: Re: btconfig: SIOCSBTFLAGS: Resource temporarily unavailable
To: Iain Hibbert <plunky@rya-online.net>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: tech-kern
Date: 07/16/2006 18:40:30
--nextPart18017693.Mk5Ja4lVqP
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Sunday 16 July 2006 17:57, Iain Hibbert wrote:
> On Sun, 16 Jul 2006, Berndt Josef Wulf wrote:
> > /var/log/message:
> > Jul 16 16:27:46  /netbsd: hci_usrreq: ATTACH
> > Jul 16 16:27:46  /netbsd: hci_usrreq: CONTROL
> > Jul 16 16:27:46  /netbsd: hci_ioctl: cmd 0xc0386205
> > Jul 16 16:27:46  /netbsd: hci_usrreq: CONTROL
> > Jul 16 16:27:46  /netbsd: hci_ioctl: cmd 0xc0386208
> > Jul 16 16:27:46  /netbsd: hci_send_cmd: (ubt0) opcode (003|0003)
> > Jul 16 16:27:46  /netbsd: hci_event: (ubt0) event COMMAND COMPLETE
> > Jul 16 16:27:46  /netbsd: hci_event_command_compl: (ubt0) opcode
> > (003|0003) num_cmd_pkts =3D 1
> > Jul 16 16:27:46  /netbsd: hci_send_cmd: (ubt0) opcode (004|0009)
> > Jul 16 16:27:46  /netbsd: hci_send_cmd: (ubt0) opcode (004|0005)
> > Jul 16 16:27:46  /netbsd: hci_send_cmd: (ubt0) opcode (004|0003)
> > Jul 16 16:27:47  /netbsd: ubt_recv_acl_complete: status=3DCANCELLED (6)
> > Jul 16 16:27:47  /netbsd: hci_usrreq: DETACH
> >
> > Let me know if you want me to do any further testing...
>
> Ok thanks, this is most interesting.. we reset the device on enable
> (because I found that after a reboot the controller can still contain
> previous state that we have no way of knowing about) and after this, it
> does not respond.  I wonder if the Dell 350 module needs some kind of
> extra kick start, will investigate..   are there any BIOS options
> available to you regarding this module?
>
> In the meantime, you can try the patch below which cuts out the reset and
> see if it solves the problem for you?
>
> iain

I looked through the bios but besides the usual enable/disable device there=
 is=20
nothing else to tweak besides enabling a function key that controls the=20
on/off status of the device.

However, your patch seems to get us a step further see below:
: {7} btconfig
ubt0: bdaddr 00:16:41:57:68:6a flags 0xc0<INIT_BUFFER_SIZE,INIT_FEATURES>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Jul 16 18:35:55  /netbsd: hci_usrreq: ATTACH
Jul 16 18:35:55  /netbsd: hci_usrreq: CONTROL
Jul 16 18:35:55  /netbsd: hci_ioctl: cmd 0xc0386207
Jul 16 18:35:55  /netbsd: hci_usrreq: CONTROL
Jul 16 18:35:55  /netbsd: hci_ioctl: cmd 0xc0386207
Jul 16 18:35:55  /netbsd: hci_usrreq: DETACH

: {8} btconfig ubt0
ubt0: bdaddr 00:16:41:57:68:6a flags 0xc0<INIT_BUFFER_SIZE,INIT_FEATURES>
        num_cmd =3D 0
        num_acl =3D 0, acl_mtu =3D 0
        num_sco =3D 0, sco_mtu =3D 0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Jul 16 18:36:23  /netbsd: hci_usrreq: ATTACH
Jul 16 18:36:23  /netbsd: hci_usrreq: CONTROL
Jul 16 18:36:23  /netbsd: hci_ioctl: cmd 0xc0386205
Jul 16 18:36:23  /netbsd: hci_usrreq: DETACH

: {9} btconfig ubt0 up
btconfig: SIOCSBTFLAGS: Resource temporarily unavailable
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Jul 16 18:37:28  /netbsd: hci_usrreq: ATTACH
Jul 16 18:37:28  /netbsd: hci_usrreq: CONTROL
Jul 16 18:37:28  /netbsd: hci_ioctl: cmd 0xc0386205
Jul 16 18:37:28  /netbsd: hci_usrreq: CONTROL
Jul 16 18:37:28  /netbsd: hci_ioctl: cmd 0xc0386208
Jul 16 18:37:28  /netbsd: ubt_enable: sc=3D0xc1f89400
Jul 16 18:37:28  /netbsd: hci_send_cmd: (ubt0) opcode (004|0009)
Jul 16 18:37:28  /netbsd: hci_send_cmd: (ubt0) opcode (004|0005)
Jul 16 18:37:28  /netbsd: hci_send_cmd: (ubt0) opcode (004|0003)
Jul 16 18:37:28  /netbsd: hci_event: (ubt0) event COMMAND COMPLETE
Jul 16 18:37:28  /netbsd: hci_event_command_compl: (ubt0) opcode (004|0009)=
=20
num_cmd_pkts =3D 1
Jul 16 18:37:29  /netbsd: ubt_disable: sc=3D0xc1f89400
Jul 16 18:37:29  /netbsd: ubt_abortdealloc: sc=3D0xc1f89400
Jul 16 18:37:29  /netbsd: ubt_recv_acl_complete: status=3DCANCELLED (6)
Jul 16 18:37:29  /netbsd: hci_usrreq: DETACH

we are getting there....  :-)

cheerio Berndt

--nextPart18017693.Mk5Ja4lVqP
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (NetBSD)

iD8DBQBEugKLcUIHpeIRpjERAqWiAKDcWMnO3RI53KWrEyn7ILWKNZK1mgCeJUZS
aQBq0wGzEXfZtT3TR0gUt9Y=
=AJmk
-----END PGP SIGNATURE-----

--nextPart18017693.Mk5Ja4lVqP--