aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-vanilla/0001-HID-quirks-fix-support-for-Apple-Magic-Keyboards.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/linux-vanilla/0001-HID-quirks-fix-support-for-Apple-Magic-Keyboards.patch')
-rw-r--r--main/linux-vanilla/0001-HID-quirks-fix-support-for-Apple-Magic-Keyboards.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/linux-vanilla/0001-HID-quirks-fix-support-for-Apple-Magic-Keyboards.patch b/main/linux-vanilla/0001-HID-quirks-fix-support-for-Apple-Magic-Keyboards.patch
new file mode 100644
index 0000000000..864070e0b1
--- /dev/null
+++ b/main/linux-vanilla/0001-HID-quirks-fix-support-for-Apple-Magic-Keyboards.patch
@@ -0,0 +1,35 @@
+From 80f1d275c53464f7f8154b8d36012c1c68ab6719 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Wed, 17 Oct 2018 14:26:55 +0200
+Subject: [PATCH] HID: quirks: fix support for Apple Magic Keyboards
+
+Commit ee345492 (HID: add support for Apple Magic Keyboards) added
+support for the Magic Keyboard over Bluetooth, but did not add the
+BT_VENDOR_ID_APPLE to hid-quirks. Fix this so hid-apple driver is used
+over hid-generic.
+
+This fixes the Fn key, which does not work at all with hid-generic.
+
+Bugzilla-id: https://bugzilla.kernel.org/show_bug.cgi?id=99881
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ drivers/hid/hid-core.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
+index 672b0be41d44..a306493e2e97 100644
+--- a/drivers/hid/hid-core.c
++++ b/drivers/hid/hid-core.c
+@@ -1964,6 +1964,9 @@ static const struct hid_device_id hid_have_special_driver[] = {
+ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_ISO) },
+ { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_WIRELESS_2011_JIS) },
+ { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_ANSI) },
++ { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_ANSI) },
++ { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_ANSI) },
++ { HID_BLUETOOTH_DEVICE(BT_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_MAGIC_KEYBOARD_NUMPAD_ANSI) },
+ { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY) },
+ { HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY) },
+ #endif
+--
+2.19.1
+