2010-08-01 21:23:22

by Nobuhiro Iwamatsu

[permalink] [raw]
Subject: [PATCH] bluetooth: Add support Bluetooth controller of Macbook Pro 6,2 and 7,1

Bluetooth controller of Macbook Pro 6,2 and 7,1 does not work.
Because Device Class of these controllers was set 255 (Vendor Sepecific Class).

Macbook Pro 7,1 :
Bus 004 Device 005: ID 05ac:8213 Apple, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 1
bDeviceProtocol 1
bMaxPacketSize0 64
idVendor 0x05ac Apple, Inc.
idProduct 0x8213
bcdDevice 1.86
iManufacturer 1 Apple Inc.
iProduct 2 Bluetooth USB Host Controller
iSerial 3 5C5948C81B99
bNumConfigurations 1

Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
---
drivers/bluetooth/btusb.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 5d9cc53..00a6639 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -75,6 +75,12 @@ static struct usb_device_id btusb_table[] = {
/* Canyon CN-BTU1 with HID interfaces */
{ USB_DEVICE(0x0c10, 0x0000) },

+ /* Apple MacBookPro 6,2 */
+ { USB_DEVICE(0x05ac, 0x8218) },
+
+ /* Apple MacBookPro 7,2 */
+ { USB_DEVICE(0x05ac, 0x8213) },
+
{ } /* Terminating entry */
};

--
1.7.1


2010-08-01 23:47:46

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] bluetooth: Add support Bluetooth controller of Macbook Pro 6,2 and 7,1

Hi Nobuhiro,

> Bluetooth controller of Macbook Pro 6,2 and 7,1 does not work.
> Because Device Class of these controllers was set 255 (Vendor Sepecific Class).
>
> Macbook Pro 7,1 :
> Bus 004 Device 005: ID 05ac:8213 Apple, Inc.
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 2.00
> bDeviceClass 255 Vendor Specific Class
> bDeviceSubClass 1
> bDeviceProtocol 1
> bMaxPacketSize0 64
> idVendor 0x05ac Apple, Inc.
> idProduct 0x8213
> bcdDevice 1.86
> iManufacturer 1 Apple Inc.
> iProduct 2 Bluetooth USB Host Controller
> iSerial 3 5C5948C81B99
> bNumConfigurations 1

I prefer the details of /proc/bus/usb/devices or usb-devices.sh script.
And I do prefer one patch with it for each MacBook.

> Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
> ---
> drivers/bluetooth/btusb.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index 5d9cc53..00a6639 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -75,6 +75,12 @@ static struct usb_device_id btusb_table[] = {
> /* Canyon CN-BTU1 with HID interfaces */
> { USB_DEVICE(0x0c10, 0x0000) },
>
> + /* Apple MacBookPro 6,2 */
> + { USB_DEVICE(0x05ac, 0x8218) },
> +
> + /* Apple MacBookPro 7,2 */
> + { USB_DEVICE(0x05ac, 0x8213) },
> +
> { } /* Terminating entry */
> };

Please sort them along the entry for the iMac11,1 and make sure it is
smaller PID first.

Regards

Marcel