From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C4B7C4167D for ; Mon, 6 Nov 2023 03:11:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbjKFDL3 (ORCPT ); Sun, 5 Nov 2023 22:11:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKFDL1 (ORCPT ); Sun, 5 Nov 2023 22:11:27 -0500 Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A314AFB; Sun, 5 Nov 2023 19:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1699240281; x=1699499481; bh=idQ3IqidFdyHsoQsdHKBLqOmv9RIswPb409eAI7L+Vk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=hGeRn9u8PIG9NW10GF2zaushzJcWTrhTK+dEXyRSMDMIgE7dfPSJx6UnUyG98kLuS 439HKtzT7U+jWzZyGeQx7oINFRo62WbGROeAq10VQV4gjeSeVyTrJExxOHVf9Ohuw7 yOisfDu8zp6U4dv2EQhD1A72uc2Nfex+EXE2O1flRsdcMUkgXoojfjHxeHRBqoC+L4 NGuFAy/OoW9zzgm52ESzKngo1ftDREbXwDCL4k84Qhmxhz3Yv8SRzNKV2T8NULqEaC q7YTHLjJVFnjl6IyruWdcZJiMgHa0ZB3z6Kc86BqiyoZcv7GSMYHIHU7STPfnk0V40 86DHBbJAClU1g== Date: Mon, 06 Nov 2023 03:11:09 +0000 To: Yihong Cao From: Rahul Rameshbabu Cc: Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: apple: add Jamesdonkey and A3R to non-apple keyboards list Message-ID: <87a5rr1sqf.fsf@protonmail.com> In-Reply-To: References: Feedback-ID: 26003777:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Oct, 2023 01:05:38 +0800 "Yihong Cao" w= rote: > Jamesdonkey A3R keyboard is identified as "Jamesdonkey A3R" in wired > mode, "A3R-U" in wireless mode and "A3R" in bluetooth mode. Adding them > to non-apple keyboards fixes function key. > > Signed-off-by: Yihong Cao > --- > drivers/hid/hid-apple.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c > index 3ca45975c686..d9e9829b2200 100644 > --- a/drivers/hid/hid-apple.c > +++ b/drivers/hid/hid-apple.c > @@ -345,6 +345,8 @@ static const struct apple_non_apple_keyboard non_appl= e_keyboards[] =3D { > =09{ "AONE" }, > =09{ "GANSS" }, > =09{ "Hailuck" }, > +=09{ "Jamesdonkey" }, Sorry, maybe I misunderstood the commit message. In wired mode, if the keyboard is identified as "Jamesdonkey A3R", shouldn't this value be "Jamesdonkey A3R" instead of "Jamesdonkey"? > +=09{ "A3R" }, > }; > > static bool apple_is_non_apple_keyboard(struct hid_device *hdev) -- Thanks, Rahul Rameshbabu