linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Add bluetooth support for VAIO VPCEH [0489:e027]
@ 2012-10-29 13:09 Marcos Chaparro
  2012-10-31 18:25 ` Gustavo Padovan
  0 siblings, 1 reply; 7+ messages in thread
From: Marcos Chaparro @ 2012-10-29 13:09 UTC (permalink / raw)
  To: Marcel Holtmann, Gustavo Padovan, Johan Hedberg, linux-bluetooth
  Cc: linux-kernel

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

Hi,
this patch against 3.7-rc3 identifies my Atheros AR3011 internal bluetooth 
device, I just transferred some files from my phone to this debian PC using 
bluetooth and it works fine (btw, it needs atheros-firmware package).

Before changing this, lsusb was identifying it as a Foxconn / Hon Hai device, 
which is wrong, and it probably loaded a different firmware to the bluetooth 
module.

The patches solves the following discussions:
https://answers.launchpad.net/ubuntu/+source/bluez/+question/168992 
http://ubuntuforums.org/showthread.php?t=1867214 
http://linux-unix-open-source.1053819.n5.nabble.com/Atheros-AR9285-on-
Ubuntu-11-10-Sony-Vaio-VPCEH-wifi-does-t-works-td4931321.html 
http://www.vivaolinux.com.br/topico/Rede-Wireless/Bluetooth-vaio-VPCEH-
desabilitado 

Please tell me if you won't add it to mainstream for some reason.

Thanks in advance, and greetings from Argentina.

--
Marcos

PS: Sent again without HTML formatting

[-- Attachment #2: patchfile --]
[-- Type: text/x-patch, Size: 1165 bytes --]

diff -uNr linux-3.7-rc3.orig/drivers/bluetooth/ath3k.c linux-3.7-rc3.new/drivers/bluetooth/ath3k.c
--- linux-3.7-rc3.orig/drivers/bluetooth/ath3k.c	2012-10-28 16:24:48.000000000 -0300
+++ linux-3.7-rc3.new/drivers/bluetooth/ath3k.c	2012-10-29 09:39:03.459764720 -0300
@@ -67,6 +67,7 @@
 	{ USB_DEVICE(0x13d3, 0x3304) },
 	{ USB_DEVICE(0x0930, 0x0215) },
 	{ USB_DEVICE(0x0489, 0xE03D) },
+	{ USB_DEVICE(0x0489, 0xE027) },
 
 	/* Atheros AR9285 Malbec with sflash firmware */
 	{ USB_DEVICE(0x03F0, 0x311D) },
diff -uNr linux-3.7-rc3.orig/drivers/bluetooth/btusb.c linux-3.7-rc3.new/drivers/bluetooth/btusb.c
--- linux-3.7-rc3.orig/drivers/bluetooth/btusb.c	2012-10-28 16:24:48.000000000 -0300
+++ linux-3.7-rc3.new/drivers/bluetooth/btusb.c	2012-10-29 09:39:06.219765159 -0300
@@ -124,6 +124,7 @@
 	{ USB_DEVICE(0x13d3, 0x3304), .driver_info = BTUSB_IGNORE },
 	{ USB_DEVICE(0x0930, 0x0215), .driver_info = BTUSB_IGNORE },
 	{ USB_DEVICE(0x0489, 0xe03d), .driver_info = BTUSB_IGNORE },
+	{ USB_DEVICE(0x0489, 0xe027), .driver_info = BTUSB_IGNORE },
 
 	/* Atheros AR9285 Malbec with sflash firmware */
 	{ USB_DEVICE(0x03f0, 0x311d), .driver_info = BTUSB_IGNORE },

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH] ath3k: Add support for VAIO VPCEH [0489:e027]
@ 2012-11-02  0:38 Marcos Chaparro
  2012-11-06 11:02 ` Gustavo Padovan
  0 siblings, 1 reply; 7+ messages in thread
From: Marcos Chaparro @ 2012-11-02  0:38 UTC (permalink / raw)
  To: Gustavo Padovan
  Cc: Marcel Holtmann, Johan Hedberg, linux-bluetooth, linux-kernel

Added Atheros AR3011 internal bluetooth device found in Sony VAIO VPCEH to the 
devices list.
Before this, the bluetooth module was identified as an Foxconn / Hai bluetooth 
device [0489:e027], now it claims to be an AtherosAR3011 Bluetooth 
[0cf3:3005].

# cat /sys/kernel/debug/usb/devices
T:  Bus=01 Lev=02 Prnt=02 Port=04 Cnt=02 Dev#=  4 Spd=12   MxCh= 0
D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0489 ProdID=e027 Rev= 0.01
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
I:  If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms

Signed-off by: Marcos A Chaparro <marcos@mrkindustries.com.ar>
---

Updated usb /sys/kernel/debug/usb/devices output. A complete powercycle flushed 
the device firmware.

diff --git a/linux-3.7-rc3.orig/drivers/bluetooth/ath3k.c b/linux-3.7-
rc3.new/drivers/bluetooth/ath3k.c
index fc2de55..b00000e 100644
--- a/linux-3.7-rc3.orig/drivers/bluetooth/ath3k.c
+++ b/linux-3.7-rc3.new/drivers/bluetooth/ath3k.c
@@ -67,6 +67,7 @@ static struct usb_device_id ath3k_table[] = {
        { USB_DEVICE(0x13d3, 0x3304) },
        { USB_DEVICE(0x0930, 0x0215) },
        { USB_DEVICE(0x0489, 0xE03D) },
+       { USB_DEVICE(0x0489, 0xE027) },
 
        /* Atheros AR9285 Malbec with sflash firmware */
        { USB_DEVICE(0x03F0, 0x311D) },
diff --git a/linux-3.7-rc3.orig/drivers/bluetooth/btusb.c b/linux-3.7-
rc3.new/drivers/bluetooth/btusb.c
index debda27..ee82f2f 100644
--- a/linux-3.7-rc3.orig/drivers/bluetooth/btusb.c
+++ b/linux-3.7-rc3.new/drivers/bluetooth/btusb.c
@@ -124,6 +124,7 @@ static struct usb_device_id blacklist_table[] = {
        { USB_DEVICE(0x13d3, 0x3304), .driver_info = BTUSB_IGNORE },
        { USB_DEVICE(0x0930, 0x0215), .driver_info = BTUSB_IGNORE },
        { USB_DEVICE(0x0489, 0xe03d), .driver_info = BTUSB_IGNORE },
+       { USB_DEVICE(0x0489, 0xe027), .driver_info = BTUSB_IGNORE },
 
        /* Atheros AR9285 Malbec with sflash firmware */
        { USB_DEVICE(0x03f0, 0x311d), .driver_info = BTUSB_IGNORE },

--
Marcos

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-11-06 11:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-29 13:09 [PATCH] Add bluetooth support for VAIO VPCEH [0489:e027] Marcos Chaparro
2012-10-31 18:25 ` Gustavo Padovan
2012-11-01 22:40   ` [PATCH] ath3k: Add " Marcos Chaparro
2012-11-01 22:53     ` Gustavo Padovan
2012-11-01 23:19       ` Marcos Chaparro
  -- strict thread matches above, loose matches on Subject: below --
2012-11-02  0:38 Marcos Chaparro
2012-11-06 11:02 ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).