btusb.c: add support for 2011 mac mini
PATCH 1/1 btusb.c: add support for 2011 mac mini
Today I noticed that the usb bluetooth adapter (BCM2046B1) on my 2011 mac mini was not working. I've created a patch to get it going.
drivers/bluetooth/btusb.c +3 -0
@@ -75,6 +75,9 @@ static struct usb_device_id btusb_table[] = {/* Apple MacBookPro8,2 */ { USB_DEVICE(0x05ac, 0x821a) }, +/* Apple MacMini5,1 */ + { USB_DEVICE(0x05ac, 0x8281) }, +/* AVM BlueFRITZ! USB v2.0 */ { USB_DEVICE(0x057c, 0x3800) },
Patch is against current kernel git.
Jurgen
DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGxpbnV4LWJsdWV0b290aC1v d25lckB2Z2VyLmtlcm5lbC5vcmcgW21haWx0bzpsaW51eC1ibHVldG9vdGgtDQo+IG93bmVyQHZn ZXIua2VybmVsLm9yZ10gT24gQmVoYWxmIE9mIEp1cmdlbiBLcmFtZXINCj4gU2VudDogU3VuZGF5 LCAwNCBTZXB0ZW1iZXIsIDIwMTEgMjA6MDINCj4gVG86IGxpbnV4LWJsdWV0b290aEB2Z2VyLmtl cm5lbC5vcmcNCj4gU3ViamVjdDogW1BBVENIXSBidHVzYi5jOiBhZGQgc3VwcG9ydCBmb3IgMjAx MSBtYWMgbWluaQ0KPiANCj4gVG9kYXkgSSBub3RpY2VkIHRoYXQgdGhlIHVzYiBibHVldG9vdGgg YWRhcHRlciAoQkNNMjA0NkIxKSBvbiBteSAyMDExIG1hYw0KPiBtaW5pIHdhcyBub3Qgd29ya2lu Zy4gSSd2ZSBjcmVhdGVkIGEgcGF0Y2ggdG8gZ2V0IGl0IGdvaW5nLg0KPiANCj4gZGlmZiAtLWdp dCBhL2RyaXZlcnMvYmx1ZXRvb3RoL2J0dXNiLmMgYi9kcml2ZXJzL2JsdWV0b290aC9idHVzYi5j IGluZGV4DQo+IDNlZjQ3NjAuLjhkODA3YzUgMTAwNjQ0DQo+IC0tLSBhL2RyaXZlcnM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kIHJlY29tcGlsZWQgdGhl IGZ1bGwga2VybmVsIC0gYXMgcGVyIG1vZGluZm8sIHRoZSBvbmx5IGRlcCBmb3IgYnR1c2Igd2Fz IGJsdWV0b290aCAtIGFuZCB0aGluZ3MgZGlkIG5vdCB3b3JrLCBldmVuIHdoZW4gSSBtYW51YWxs eSBsb2FkZWQgaGNpX3VhcnQgYW5kIGhjaV92aGNpLg0KDQpBbnkgaWRlYXMgd2h5IHRoaXMgbWln aHQgYmU/DQoNClJlZ2FyZHMNCkpvaG4NCg0K
Hi John,
Quoted 31 lines · John Frankish
Quoted 27 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Jurgen Kramer
Sent: Sunday, 04 September, 2011 20:02
To: [email protected]
Subject: [PATCH]btusb.c: add support for 2011 mac miniToday I noticed that the usb bluetooth adapter (BCM2046B1) on my 2011 mac mini was not working. I've created a patch to get it going.
drivers/bluetooth/btusb.c index renamed from drivers/bluetooth/btusb.c +0
-03ef4760..8d807c5 100644
drivers/bluetooth/btusb.c +3
-0@@ -75,6 +75,9 @@ static struct usb_device_id btusb_table[] = {/* Apple MacBookPro8,2 */ { USB_DEVICE(0x05ac, 0x821a) }, +/* Apple MacMini5,1 */ + { USB_DEVICE(0x05ac, 0x8281) }, +/* AVM BlueFRITZ! USB v2.0 */ { USB_DEVICE(0x057c, 0x3800) },Patch is against current kernel git.
Quoted 2 lines
Jurgen
I tried this patch with the 3.0.3 kernel.
Quoted 5 lines
When I only compiled the modules in
drivers/bluetoothand without Module.symvers (so no deps), I got this when I manually loaded the modules:btusb: Unknown symbol
hci_free_dev(err 0)
btusb: Unknown symbolhci_alloc_dev(err 0)
...
You have to enable other bluetooth modules as well. bluetooth.ko at least. rfcomm, bnep and hidp if you need then.
Gustavo
Quoted 40 lines
Hi John,
Quoted 26 lines · John Frankish
Quoted 26 lines
-----Original Message-----
From: [email protected] [mailto:linux-bluetooth- [email protected]] On Behalf Of Jurgen Kramer
Sent: Sunday, 04 September, 2011 20:02
To: [email protected]
Subject: [PATCH]btusb.c: add support for 2011 mac miniToday I noticed that the usb bluetooth adapter (BCM2046B1) on my 2011 mac mini was not working. I've created a patch to get it going.
drivers/bluetooth/btusb.c +0
-0index
3ef4760..8d807c5 100644drivers/bluetooth/btusb.c +3
-0@@ -75,6 +75,9 @@ static struct usb_device_id btusb_table[] = {/* Apple MacBookPro8,2 */ { USB_DEVICE(0x05ac, 0x821a) }, +/* Apple MacMini5,1 */ + { USB_DEVICE(0x05ac, 0x8281) }, +/* AVM BlueFRITZ! USB v2.0 */ { USB_DEVICE(0x057c, 0x3800) },Quoted 7 lines
Quoted 4 lines
Patch is against current kernel git.
Jurgen
I tried this patch with the 3.0.3 kernel.
When I only compiled the modules in
drivers/bluetoothand withoutModule.symvers (so no deps), I got this when I manually loaded the modules:
Quoted 1 line
Quoted 8 lines
Quoted 2 lines
btusb: Unknown symbol
hci_free_dev(err 0)
btusb: Unknown symbolhci_alloc_dev(err 0) ...You have to enable other bluetooth modules as well. bluetooth.ko at least. rfcomm, bnep and hidp if you need then.
Gustavo
--
Knowing that the patched btusb was recompiled without Module.symvers, I had already loaded the bluetooth module prior to loading btusb. In any case, this attempt worked and I could successfully see other Bluetooth devices.
It was when I recompiled the full kernel source with the btusb patch that things did not work..
Regards
John
Quoted 19 lines · Jurgen Kramer
Today I noticed that the usb bluetooth adapter (BCM2046B1) on my 2011 mac mini was not working. I've created a patch to get it going.
drivers/bluetooth/btusb.c +3
-0@@ -75,6 +75,9 @@ static struct usb_device_id btusb_table[] = {/* Apple MacBookPro8,2 */ { USB_DEVICE(0x05ac, 0x821a) }, +/* Apple MacMini5,1 */ + { USB_DEVICE(0x05ac, 0x8281) }, +/* AVM BlueFRITZ! USB v2.0 */ { USB_DEVICE(0x057c, 0x3800) },Patch is against current kernel git.
Quoted 2 lines
Jurgen
Will this patch be send upstream?
Thanks,
Jurgen
Hi Jurgen,
Quoted 2 lines · Jurgen Kramer
Today I noticed that the usb bluetooth adapter (BCM2046B1) on my 2011 mac mini was not working. I've created a patch to get it going.
I need your Signed-off-by: line to apply the patch.
Gustavo
Quoted 11 lines · Gustavo Padovan
Hi Jurgen,
Quoted 2 lines · Jurgen Kramer
Today I noticed that the usb bluetooth adapter (BCM2046B1) on my 2011 mac mini was not working. I've created a patch to get it going.
I need your Signed-off-by: line to apply the patch.
Gustavo
--
OK, thanks. Here it goes:
Patch for btusb.c to enable the usb bluetooth adapter (BCM2046B1) on the 2011 mac mini (MacMini5,1).
drivers/bluetooth/btusb.c +3 -0
@@ -75,6 +75,9 @@ static struct usb_device_id btusb_table[] = {/* Apple MacBookPro8,2 */ { USB_DEVICE(0x05ac, 0x821a) }, + {* Apple MacMini5,1 */ + { USB_DEVICE(0x05ac, 0x8281) }, +/* AVM BlueFRITZ! USB v2.0 */ { USB_DEVICE(0x057c, 0x3800) },
Jurgen
Marcel Holtmann
maintainerHi Jurgen,
Quoted 5 lines
Quoted 5 lines · Jurgen Kramer
Quoted 3 lines
Today I noticed that the usb bluetooth adapter (BCM2046B1) on my 2011 mac mini was not working. I've created a patch to get it going.
Quoted 8 lines
Quoted 4 lines
I need your Signed-off-by: line to apply the patch.
Gustavo
--OK, thanks. Here it goes:
Patch for
btusb.cto enable the usb bluetooth adapter (BCM2046B1) on the 2011 mac mini (MacMini5,1).
can you please follow the kernel guidelines for submitting patches aka Documentation/SubmittingPatches.
It is really not the maintainers job to fix this up. My rule is that a patch (including commit message and signed-off-by) has to apply cleanly with "git am". If it does not, it gets rejected.
So please create a proper new patch with signed-off-by line and submit it as [PATCH v2] so that Gustavo has no extra work in applying your patch.
Regards
Marcel