Linux bluetooth development
 help / color / mirror / Atom feed
From: Aleksey <info@dv2c.ru>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH] Bluetooth: btusb: add one more device to fixed Invalid initialization bug for kernel since 3.x
Date: Fri, 08 May 2015 02:11:27 +0300	[thread overview]
Message-ID: <1849903.jsc2NzCIHo@vwd-1> (raw)

In "Roper Class 1 Bluetooth Dongle" since 3.x kernel preset bug with invalid device initialization. 

In earlyer version
$> hciconfig hci0 up                                                                                                                                                                                                                   
Can't init device hci0: Connection timed out (110)

In new kernel
$> hciconfig hci0 up
Can't init device hci0: Invalid request code (56)

with my device
[    3.359071] usb 5-1: New USB device found, idVendor=1310, idProduct=0001
[    3.359075] usb 5-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.359078] usb 5-1: Product: SiW
[    3.359080] usb 5-1: Manufacturer: SiW
[    3.359083] usb 5-1: SerialNumber: E7BB050D0B00


Full diskussion about that problem present in https://bugzilla.kernel.org/show_bug.cgi?id=60901 "- [PATCH]Roper Class 1 Bluetooth Dongle / TRENDnet TBW-102UB not working with all kernel 3.x tested"

After "Introducing HCI_QUIRK_BROKEN_LOCAL_COMMANDS constant" from Marcel Holtmann that bug been proper fixed, but my "Silicon Wave based" device not been included in list with BTUSB_SWAVE.

Don't know about other device - i have only one dongle with that problem, but adding BTUSB_SWAVE to driver_info for my 0x1310, 0x0001 dongle full fixed that problem, and now my device can bee in UP state..

More over, i check http://www.linux-usb.org/usb-ids.html and not find 1300 device - i find only "1310 Name: Roper"

I think, what used 0x1300 wrong and meant actually 0x1310 

If belive a bug "stopped work bluetooth" https://bugzilla.kernel.org/show_bug.cgi?id=51831 in "all worked" karnel 2.6.38 i can't fined 1300, But 1310 in this kernel works well.



Signed-off-by: Aleksei Volkov <info@dv2c.ru>
---
 drivers/bluetooth/btusb.c | 1+-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -up linux-4.0.0-gentoo/drivers/bluetooth/btusb.c.orig linux-4.0.0-gentoo/drivers/bluetooth/btusb.c 
--- linux-4.0.0/drivers/bluetooth/btusb.c.orig	2015-05-01 12:06:59.000000000 +0300
+++ linux-4.0.0/drivers/bluetooth/btusb.c	2015-05-07 22:22:13.000000000 +0300
@@ -254,6 +254,6 @@ static const struct usb_device_id blackl
 
 	/* Roper Class 1 Bluetooth Dongle (Silicon Wave based) */
-	{ USB_DEVICE(0x1300, 0x0001), .driver_info = BTUSB_SWAVE },
+	{ USB_DEVICE(0x1310, 0x0001), .driver_info = BTUSB_SWAVE },
 
 	/* Digianswer devices */
 	{ USB_DEVICE(0x08fd, 0x0001), .driver_info = BTUSB_DIGIANSWER },
-- 

             reply	other threads:[~2015-05-07 23:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07 23:11 Aleksey [this message]
2015-05-08  7:11 ` [PATCH] Bluetooth: btusb: add one more device to fixed Invalid initialization bug for kernel since 3.x Szymon Janc
2015-05-13 20:59   ` Marcel Holtmann
2015-05-15  8:14     ` Aleksey Volkov
2015-05-15 14:02       ` Marcel Holtmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1849903.jsc2NzCIHo@vwd-1 \
    --to=info@dv2c.ru \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox