diff mbox series

HID: apple: Add support for Keychron K8, K2 in bluetooth mode

Message ID 20210819193221.558454-1-stephan.losa@gmail.com (mailing list archive)
State Mainlined
Commit ebe0b42a4252333aa4af60fd4d11b69405aa6068
Delegated to: Jiri Kosina
Headers show
Series HID: apple: Add support for Keychron K8, K2 in bluetooth mode | expand

Commit Message

Stephan Losa Aug. 19, 2021, 7:32 p.m. UTC
Use hid-apple in bluetooth mode like in wired mode for Keychron K8, K2
(and others). Those keyboards use vendor/product ids 05AC:024F (APPLE_ALU_REVB_ANSI).

Signed-off-by: Stephan Losa <stephan.losa@gmail.com>
---
 drivers/hid/hid-apple.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jiri Kosina Aug. 20, 2021, 1:06 p.m. UTC | #1
On Thu, 19 Aug 2021, Stephan Losa wrote:

> Use hid-apple in bluetooth mode like in wired mode for Keychron K8, K2
> (and others). Those keyboards use vendor/product ids 05AC:024F (APPLE_ALU_REVB_ANSI).
> 
> Signed-off-by: Stephan Losa <stephan.losa@gmail.com>

Applied, thanks.
Stephan Losa Aug. 20, 2021, 3:41 p.m. UTC | #2
On Fri, Aug 20, 2021 at 03:06:29PM +0200, Jiri Kosina wrote:
> On Thu, 19 Aug 2021, Stephan Losa wrote:
> 
> > Use hid-apple in bluetooth mode like in wired mode for Keychron K8, K2
> > (and others). Those keyboards use vendor/product ids 05AC:024F (APPLE_ALU_REVB_ANSI).
> > 
> > Signed-off-by: Stephan Losa <stephan.losa@gmail.com>
> 
> Applied, thanks.
> 
> -- 
> Jiri Kosina
> SUSE Labs
> 
FYI

Someone brought to my attention that a similar fix has been already merged
into 5.14-rc4 three weeks ago torvalds/linux@ebe0b42.

Stephan
diff mbox series

Patch

diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c
index 6b8f0d004d34..dc6bd4299c54 100644
--- a/drivers/hid/hid-apple.c
+++ b/drivers/hid/hid-apple.c
@@ -501,6 +501,8 @@  static const struct hid_device_id apple_devices[] = {
 			APPLE_RDESC_JIS },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ANSI),
 		.driver_data = APPLE_HAS_FN },
+	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ANSI),
+		.driver_data = APPLE_HAS_FN },
 	{ HID_USB_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO),
 		.driver_data = APPLE_HAS_FN },
 	{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_ALU_REVB_ISO),