2011-04-19 07:46:17

by Dave Young

[permalink] [raw]
Subject: Re: [BUG] bluetooth doesn't work from 2.6.39-rc1+ to 2.6.39-rc3+

On Tue, Apr 19, 2011 at 10:53 AM, Hui Zhu <[email protected]> wrote:
> Cannot connect to any outside devices through bluetooth.
>
> And I think this is not a bug of low level driver.  Because both my
> laptop and a usb bluetooth card cannot work.

Hi, please explain the "cannot work" in detail,
Firstly check dmesg and hciconfig to see if there's anything wrong.

--
Regards
dave


2011-04-27 11:00:28

by Ed Tomlinson

[permalink] [raw]
Subject: Re: [BUG] bluetooth doesn't work from 2.6.39-rc1+ to 2.6.39-rc3+

On Tuesday 26 April 2011 22:55:22 Dave Young wrote:
> On Sun, Apr 24, 2011 at 9:52 PM, Ed Tomlinson <[email protected]> wrote:
> > On Tuesday 19 April 2011 11:34:30 Hui Zhu wrote:
> >> Do you part is OK?
> >>
> >> I think it will be very easy to reproduce.
> >>
> >> Thanks,
> >> Hui
> >>
> >> On Tue, Apr 19, 2011 at 15:46, Dave Young <[email protected]> wrote:
> >> > On Tue, Apr 19, 2011 at 10:53 AM, Hui Zhu <[email protected]> wrote:
> >> >> Cannot connect to any outside devices through bluetooth.
> >> >>
> >> >> And I think this is not a bug of low level driver. Because both my
> >> >> laptop and a usb bluetooth card cannot work.
> >> >
> >> > Hi, please explain the "cannot work" in detail,
> >> > Firstly check dmesg and hciconfig to see if there's anything wrong.
> >
> > I am also seeing problems with bluetooth in .39-rc4+
> >
> > [54511.033258] usb 2-4.4: USB disconnect, device number 5
> > [54513.920060] usb 2-4.3: new full speed USB device number 6 using ehci_hcd
> > [54514.063057] usb 2-4.3: New USB device found, idVendor=0a12, idProduct=0001
> > [54514.070281] usb 2-4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> > grover ~ # hciconfig -a
> > hci0: Type: BR/EDR Bus: USB
> > BD Address: 00:0A:3A:55:07:5A ACL MTU: 192:8 SCO MTU: 64:8
> > DOWN
> > RX bytes:718 acl:0 sco:0 events:25 errors:0
> > TX bytes:108 acl:0 sco:0 commands:24 errors:0
> > Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
> > Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> > Link policy: CONFIG_BT_HCIBTUSB=m
> > Link mode: SLAVE ACCEPT
> >
> > grover ~ # hciconfig hci0 up
> > Can't init device hci0: Invalid argument (22)
> >
> > The same error happens If I just try a hciconfig hci0 up after boot (without replugging the adaptor).
>
> I did not see your problem, my usb dongle usbid is 0a12:0001 as well,
> maybe bisect is the way to go.

I can try but this bug was introduced during the .38 to rc1 window. I've not had much luck
bisecting through pre rc1...

Is there any good way to trace what is giving the 'Invalid argument 22'?

Ed

> >
> > CONFIG_BT_HCIBTSDIO=m
> > CONFIG_BT_HCIUART=m
> > CONFIG_BT_HCIUART_H4=y
> > CONFIG_BT_HCIUART_BCSP=y
> > # CONFIG_BT_HCIUART_ATH3K is not set
> > CONFIG_BT_HCIUART_LL=y
> > CONFIG_BT_HCIBCM203X=m
> > CONFIG_BT_HCIBPA10X=m
> > CONFIG_BT_HCIBFUSB=m
> > CONFIG_BT_HCIVHCI=m
> >
> > and bluez-4.91 is installed
> >
> > Ideas?
> > Ed Tomlinson
> >
>
>
>
>

2011-04-27 10:57:49

by Ed Tomlinson

[permalink] [raw]
Subject: Re: [BUG] bluetooth doesn't work from 2.6.39-rc1+ to 2.6.39-rc3+

On Tuesday 26 April 2011 12:13:30 Gustavo F. Padovan wrote:
> * Ed Tomlinson <[email protected]> [2011-04-24 09:52:14 -0400]:
>
> > On Tuesday 19 April 2011 11:34:30 Hui Zhu wrote:
> > > Do you part is OK?
> > >
> > > I think it will be very easy to reproduce.
> > >
> > > Thanks,
> > > Hui
> > >
> > > On Tue, Apr 19, 2011 at 15:46, Dave Young <[email protected]> wrote:
> > > > On Tue, Apr 19, 2011 at 10:53 AM, Hui Zhu <[email protected]> wrote:
> > > >> Cannot connect to any outside devices through bluetooth.
> > > >>
> > > >> And I think this is not a bug of low level driver. Because both my
> > > >> laptop and a usb bluetooth card cannot work.
> > > >
> > > > Hi, please explain the "cannot work" in detail,
> > > > Firstly check dmesg and hciconfig to see if there's anything wrong.
> >
> > I am also seeing problems with bluetooth in .39-rc4+
> >
> > [54511.033258] usb 2-4.4: USB disconnect, device number 5
> > [54513.920060] usb 2-4.3: new full speed USB device number 6 using ehci_hcd
> > [54514.063057] usb 2-4.3: New USB device found, idVendor=0a12, idProduct=0001
> > [54514.070281] usb 2-4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> > grover ~ # hciconfig -a
> > hci0: Type: BR/EDR Bus: USB
> > BD Address: 00:0A:3A:55:07:5A ACL MTU: 192:8 SCO MTU: 64:8
> > DOWN
> > RX bytes:718 acl:0 sco:0 events:25 errors:0
> > TX bytes:108 acl:0 sco:0 commands:24 errors:0
> > Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
> > Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> > Link policy: CONFIG_BT_HCIBTUSB=m
> > Link mode: SLAVE ACCEPT
> >
> > grover ~ # hciconfig hci0 up
> > Can't init device hci0: Invalid argument (22)
>
> does dmesg show something? I'm using a -rc kernel and bluetooth is working to
> me.

What dmesg shows is included above. The tell tail for this bug is the error 22 from
user space. I see nothing on the kernel side.

Ed

2011-04-27 02:55:22

by Dave Young

[permalink] [raw]
Subject: Re: [BUG] bluetooth doesn't work from 2.6.39-rc1+ to 2.6.39-rc3+

On Sun, Apr 24, 2011 at 9:52 PM, Ed Tomlinson <[email protected]> wrote:
> On Tuesday 19 April 2011 11:34:30 Hui Zhu wrote:
>> Do you part is OK?
>>
>> I think it will be very easy to reproduce.
>>
>> Thanks,
>> Hui
>>
>> On Tue, Apr 19, 2011 at 15:46, Dave Young <[email protected]> wrote:
>> > On Tue, Apr 19, 2011 at 10:53 AM, Hui Zhu <[email protected]> wrote:
>> >> Cannot connect to any outside devices through bluetooth.
>> >>
>> >> And I think this is not a bug of low level driver.  Because both my
>> >> laptop and a usb bluetooth card cannot work.
>> >
>> > Hi, please explain the "cannot work" in detail,
>> > Firstly check dmesg and hciconfig to see if there's anything wrong.
>
> I am also seeing problems with bluetooth in .39-rc4+
>
> [54511.033258] usb 2-4.4: USB disconnect, device number 5
> [54513.920060] usb 2-4.3: new full speed USB device number 6 using ehci_hcd
> [54514.063057] usb 2-4.3: New USB device found, idVendor=0a12, idProduct=0001
> [54514.070281] usb 2-4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> grover ~ # hciconfig -a
> hci0:   Type: BR/EDR  Bus: USB
>        BD Address: 00:0A:3A:55:07:5A  ACL MTU: 192:8  SCO MTU: 64:8
>        DOWN
>        RX bytes:718 acl:0 sco:0 events:25 errors:0
>        TX bytes:108 acl:0 sco:0 commands:24 errors:0
>        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
>        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
>        Link policy: CONFIG_BT_HCIBTUSB=m
>        Link mode: SLAVE ACCEPT
>
> grover ~ # hciconfig hci0 up
> Can't init device hci0: Invalid argument (22)
>
> The same error happens If I just try a hciconfig hci0 up after boot (without replugging the adaptor).

I did not see your problem, my usb dongle usbid is 0a12:0001 as well,
maybe bisect is the way to go.

>
> CONFIG_BT_HCIBTSDIO=m
> CONFIG_BT_HCIUART=m
> CONFIG_BT_HCIUART_H4=y
> CONFIG_BT_HCIUART_BCSP=y
> # CONFIG_BT_HCIUART_ATH3K is not set
> CONFIG_BT_HCIUART_LL=y
> CONFIG_BT_HCIBCM203X=m
> CONFIG_BT_HCIBPA10X=m
> CONFIG_BT_HCIBFUSB=m
> CONFIG_BT_HCIVHCI=m
>
> and bluez-4.91 is installed
>
> Ideas?
> Ed Tomlinson
>



--
Regards
dave

2011-04-26 16:13:30

by Gustavo Padovan

[permalink] [raw]
Subject: Re: [BUG] bluetooth doesn't work from 2.6.39-rc1+ to 2.6.39-rc3+

* Ed Tomlinson <[email protected]> [2011-04-24 09:52:14 -0400]:

> On Tuesday 19 April 2011 11:34:30 Hui Zhu wrote:
> > Do you part is OK?
> >
> > I think it will be very easy to reproduce.
> >
> > Thanks,
> > Hui
> >
> > On Tue, Apr 19, 2011 at 15:46, Dave Young <[email protected]> wrote:
> > > On Tue, Apr 19, 2011 at 10:53 AM, Hui Zhu <[email protected]> wrote:
> > >> Cannot connect to any outside devices through bluetooth.
> > >>
> > >> And I think this is not a bug of low level driver. Because both my
> > >> laptop and a usb bluetooth card cannot work.
> > >
> > > Hi, please explain the "cannot work" in detail,
> > > Firstly check dmesg and hciconfig to see if there's anything wrong.
>
> I am also seeing problems with bluetooth in .39-rc4+
>
> [54511.033258] usb 2-4.4: USB disconnect, device number 5
> [54513.920060] usb 2-4.3: new full speed USB device number 6 using ehci_hcd
> [54514.063057] usb 2-4.3: New USB device found, idVendor=0a12, idProduct=0001
> [54514.070281] usb 2-4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
> grover ~ # hciconfig -a
> hci0: Type: BR/EDR Bus: USB
> BD Address: 00:0A:3A:55:07:5A ACL MTU: 192:8 SCO MTU: 64:8
> DOWN
> RX bytes:718 acl:0 sco:0 events:25 errors:0
> TX bytes:108 acl:0 sco:0 commands:24 errors:0
> Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
> Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
> Link policy: CONFIG_BT_HCIBTUSB=m
> Link mode: SLAVE ACCEPT
>
> grover ~ # hciconfig hci0 up
> Can't init device hci0: Invalid argument (22)

does dmesg show something? I'm using a -rc kernel and bluetooth is working to
me.

--
Gustavo F. Padovan
http://profusion.mobi

2011-04-24 13:52:14

by Ed Tomlinson

[permalink] [raw]
Subject: Re: [BUG] bluetooth doesn't work from 2.6.39-rc1+ to 2.6.39-rc3+

On Tuesday 19 April 2011 11:34:30 Hui Zhu wrote:
> Do you part is OK?
>
> I think it will be very easy to reproduce.
>
> Thanks,
> Hui
>
> On Tue, Apr 19, 2011 at 15:46, Dave Young <[email protected]> wrote:
> > On Tue, Apr 19, 2011 at 10:53 AM, Hui Zhu <[email protected]> wrote:
> >> Cannot connect to any outside devices through bluetooth.
> >>
> >> And I think this is not a bug of low level driver. Because both my
> >> laptop and a usb bluetooth card cannot work.
> >
> > Hi, please explain the "cannot work" in detail,
> > Firstly check dmesg and hciconfig to see if there's anything wrong.

I am also seeing problems with bluetooth in .39-rc4+

[54511.033258] usb 2-4.4: USB disconnect, device number 5
[54513.920060] usb 2-4.3: new full speed USB device number 6 using ehci_hcd
[54514.063057] usb 2-4.3: New USB device found, idVendor=0a12, idProduct=0001
[54514.070281] usb 2-4.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
grover ~ # hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: 00:0A:3A:55:07:5A ACL MTU: 192:8 SCO MTU: 64:8
DOWN
RX bytes:718 acl:0 sco:0 events:25 errors:0
TX bytes:108 acl:0 sco:0 commands:24 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: CONFIG_BT_HCIBTUSB=m
Link mode: SLAVE ACCEPT

grover ~ # hciconfig hci0 up
Can't init device hci0: Invalid argument (22)

The same error happens If I just try a hciconfig hci0 up after boot (without replugging the adaptor).

CONFIG_BT_HCIBTSDIO=m
CONFIG_BT_HCIUART=m
CONFIG_BT_HCIUART_H4=y
CONFIG_BT_HCIUART_BCSP=y
# CONFIG_BT_HCIUART_ATH3K is not set
CONFIG_BT_HCIUART_LL=y
CONFIG_BT_HCIBCM203X=m
CONFIG_BT_HCIBPA10X=m
CONFIG_BT_HCIBFUSB=m
CONFIG_BT_HCIVHCI=m

and bluez-4.91 is installed

Ideas?
Ed Tomlinson

2011-04-19 15:34:30

by Hui Zhu

[permalink] [raw]
Subject: Re: [BUG] bluetooth doesn't work from 2.6.39-rc1+ to 2.6.39-rc3+

Do you part is OK?

I think it will be very easy to reproduce.

Thanks,
Hui

On Tue, Apr 19, 2011 at 15:46, Dave Young <[email protected]> wrote:
> On Tue, Apr 19, 2011 at 10:53 AM, Hui Zhu <[email protected]> wrote:
>> Cannot connect to any outside devices through bluetooth.
>>
>> And I think this is not a bug of low level driver. ?Because both my
>> laptop and a usb bluetooth card cannot work.
>
> Hi, please explain the "cannot work" in detail,
> Firstly check dmesg and hciconfig to see if there's anything wrong.
>
> --
> Regards
> dave
>