Re: [Bluez-users] Early failures with Treo 650

David Britton
2005-05-28T05:46:01Z

[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]

Marcel Holtmann wrote:
>
>
> So loading with "modprobe hci_usb reset=1" and without the patch doesn't
> make it work? Don't using "reset=1" and applying the patch does also not
> work? Only when you do both things the dongle is working. This is odd,
> because one of my previous Broadcom based dongles like this only needed
> the BCM92035 quirk to switch from HID into HCI mode. Please test all
> possibilities so I can add the correct quirk to the kernel.

OK -- here are the results:

1) Stock 2.6.11 hci_usb module:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a) modprobe hci_usb
=> FAIL timeout on the scan (original behavior)
b) modprobe hci_usb reset=1
=> PASS This works, can scan, and info my device

2) hci_usb module with given patch applied:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a) modprobe hci_usb
=> FAIL timeout on the scan (seems to be the same as 1a)
b) modprobe hci_usb reset=1
=> PASS This works, can scan, and info my device. Also, there is a
significant increase in response when I do more "hcitool scan" commands
after the first one, I have no idea why this is or if it is important?

3) hci_usb module with attached patch applied:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a) modprobe hci_usb
=> PASS since we do the bitwise or of HCI_RESET added to BCM92035 quirk
in the module, no need to specify reset at the command line of modprobe,
so this works just as 2b worked (just as you said it would). Speed
increase on multiple "hcitool scan" commands is also present as in 2b.

If you need anything else tested, let me know.

--
David Britton <davidpbritton@gmail.com>

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 506 bytes --]

--- hci_usb.c 2005-05-28 00:38:58.000000000 -0500
+++ hci_usb.c.patch 2005-05-28 00:38:47.000000000 -0500
@@ -107,6 +107,9 @@
{ USB_DEVICE(0x0a5c, 0x200a), .driver_info = HCI_RESET | HCI_BROKEN_ISOC },
{ USB_DEVICE(0x0a5c, 0x2009), .driver_info = HCI_BCM92035 },

+ /* Kensington Bluetooth USB adapter */
+ { USB_DEVICE(0x047d, 0x105d), .driver_info = HCI_RESET | HCI_BCM92035 },
+
/* Microsoft Wireless Transceiver for Bluetooth 2.0 */
{ USB_DEVICE(0x045e, 0x009c), .driver_info = HCI_RESET },