Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249523 - broken usb bluetooth adapter needs to be blacklisted
Summary: broken usb bluetooth adapter needs to be blacklisted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-12-01 20:06 UTC by Luca Santarelli
Modified: 2008-12-24 18:10 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel patch which corrects the blacklist entry (blacklist_BT-KY100.patch,541 bytes, patch)
2008-12-01 20:08 UTC, Luca Santarelli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Santarelli 2008-12-01 20:06:44 UTC
As per bug #203196, which fixed the issue for a different device, the KY-BT100 bluetooth adapter spams syslog due to a buggy SCO support.
This patch fixes the issue by changing the already existing blacklist entry in the kernel driver file (drivers/bluetooth/hci_usb.c).
I have tested it on my own hardware (x86) and it works fine.
If you people help me to report this to upstream myself, this will be my first kernel patch. :-)

Reproducible: Always
Comment 1 Luca Santarelli 2008-12-01 20:08:05 UTC
Created attachment 173996 [details, diff]
kernel patch which corrects the blacklist entry
Comment 2 Luca Santarelli 2008-12-01 20:12:01 UTC
(In reply to comment #0)

I am sorry I forgot to add that the patch has been made upon gentoo-sources-2.6.26-r3 and not the vanilla kernel sources.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2008-12-01 20:15:32 UTC
Many thanks for this patch :)
Comment 4 Wormo (RETIRED) gentoo-dev 2008-12-02 01:21:33 UTC
Yes, thanks for submitting your patch :)

With regards to getting this fix upstream -- basic guidelines are in the kernel documentation file linux/Documentation/SubmittingPatches, have you read that yet?
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2008-12-02 11:30:26 UTC
Hmm. I am start thinking that I am not facing the same problem. Dmesg output is clear but /var/log/messages is full of crap. 

Dec  2 12:08:27 Raptor hci_scodata_packet: hci0 SCO packet for unknown connection handle 92
Dec  2 12:08:27 Raptor hci_scodata_packet: hci0 SCO packet for unknown connection handle 92
Dec  2 12:08:27 Raptor hci_scodata_packet: hci0 SCO packet for unknown connection handle 92
Dec  2 12:08:27 Raptor hci_scodata_packet: hci0 SCO packet for unknown connection handle 92
Dec  2 12:08:27 Raptor hci_scodata_packet: hci0 SCO packet for unknown connection handle 92
Dec  2 12:08:27 Raptor hci_scodata_packet: hci0 SCO packet for unknown connection handle 92


etc etc etc...

The patch didnt work for this problem...

So is that true? Am I facing a different problem?
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2008-12-02 17:44:17 UTC
Markos, you have a different broken device so you need a different patch. Please open your own bug report. Thanks!
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2008-12-02 17:51:03 UTC
oh well

Take a look here

( lsusb output )

Bus 002 Device 002: ID 1131:1001 Integrated System Solution Corp. KY-BT100 Bluetooth Adapter

I do have the same device ( or at least I think I do ) . The patch applies for the same vendor and device id as mine ...

Comment 8 Daniel Drake (RETIRED) gentoo-dev 2008-12-02 20:12:52 UTC
OK, sorry, bad assumption on my part then. Let's discuss this on IRC (I want to check that you are patching correctly)
Comment 9 Markos Chandras (RETIRED) gentoo-dev 2008-12-03 00:46:38 UTC
The patch did work for me at last. Thanks Daniel. 

Luca, did you looked the documentation and submit the patch or not? If not , we can commit it on your behalf. 

Thanks
Comment 10 Luca Santarelli 2008-12-03 06:05:29 UTC
(In reply to comment #9)
> Luca, did you looked the documentation and submit the patch or not? If not , we
> can commit it on your behalf. 

Yeah, I read the kernel docs (shame on me for not looking at the most obvious place!) but yesterday was a full day to make the patch as they want it.
I'll likely do it tomorrow, since today I'll be out of reach of this computer the whole day.
Comment 11 Markos Chandras (RETIRED) gentoo-dev 2008-12-04 17:57:13 UTC
Luca, did you have any luck submitting this bug on kernel bugzilla?
Comment 12 Luca Santarelli 2008-12-05 12:28:44 UTC
(In reply to comment #11)
> Luca, did you have any luck submitting this bug on kernel bugzilla?

http://marc.info/?l=linux-kernel&m=122843361518488&w=2

I could finally do it yesterday. :-)
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2008-12-09 12:02:50 UTC
Luca, according to LKML there is already a newer version for bluetooth usb drivers in kernel. Please try to disable to old one and enable the new

Mine is like that now

#
# Bluetooth device drivers
#
# CONFIG_BT_HCIUSB is not set
CONFIG_BT_HCIBTUSB=y


I m gonna do a couple of tests and then report back to LKML that it works 

Thanks
Comment 14 Markos Chandras (RETIRED) gentoo-dev 2008-12-09 12:40:22 UTC
Unfortunatelly this driver doesnt work for me. The device cannot be recongnised. 

Please let me know if it works on you

Comment 15 Markos Chandras (RETIRED) gentoo-dev 2008-12-09 14:22:10 UTC
Actually the driver works perfect on gentoo-sources-2.6.27-rX ( basically on every 2.6.27 kernel )

On 2.6.26 there is no support for our device 

Here is the commit that adds support for our device

http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.27.y.git;a=commitdiff;h=cfeb414537b1d7c23ba202f198fa4154cd5a4856

This patch is going to be on the next gentoo-sources-2.6.26 ( if there is one )

Thanks
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2008-12-24 18:10:45 UTC
We've requested that 2.6.27 will be marked stable, and won't be doing any more 2.6.26 releases, so we can mark this as fixed.