Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5936787pxb; Mon, 14 Feb 2022 11:08:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRFBmWFu0KQCUr6pjjBjUQe9Drj5Sk3z4pu0v0dJU6rWBIqLyjttaA/ShGYbFfL7OKyuRt X-Received: by 2002:a17:90a:1de:: with SMTP id 30mr46005pjd.177.1644865694741; Mon, 14 Feb 2022 11:08:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644865694; cv=none; d=google.com; s=arc-20160816; b=M7UL4qfSgqsIg6cJkIP7NvvvgImoYiCkCvZD0X/GPGMXRIymeV/Vvn6kwFXcywf3FO 18vKo9SvGE7Yk+WysWGWRrvycNwQniJzPgnFXZdpvdQimq6bwfTlfR3X7RT0nIOGJ05J EFdcszmrDoWYknRW6z5DZKG+Di64ZDlbyD+7qQV7ZbSBU+3DnYsOuTLw7+hO9oOOxQD7 O4sVVMaw3GAXp1ig1+wX3YUK/qLFlUBHEW5wM9FG2ZheZmZr8uU43JFPrfm1sPsSaote SJda1vRLaBqEl+1TdrHq2789c8d0yg6TD3U/bWpQ5JQ9/5va9qzfB1O0pnecp+DVMhem 3B8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=Vlt8YpxPeWv8kOUfL6B+D1ufk0/UpTyatMFIAOr4HqQ=; b=vUi8AFOZs2mkOFL6s58DfFO2yi5ITw6AX74OMx7+vKY/LCcbq0CeCgkqlQu+5KL9OH QltPov10br3IdHYOCUz1RMCUDYIR/pYNfC7OOK7Cp6PS7mQsvJ6bo9xvNOBfPwwWtW6d aZbz4UWYuxMtbUFYCF/U66DRIugtcjIjXxq0StDtl5Nmi/7CvRMVYuvAZfgwd+Dc7mGb c0xADiWD+IQGPG8BCGS8Vp8zLrmWi3Z/L9dZhk4pxEDAqRWkWlAt3sebUC+ZHx84XE2c ARJ9Q2Up+IUJo4POOa5hmQZR3T4bnnj+Vqcg69qgk8A4dUrwvtgeo88/JFpl8QSekUB5 U9fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UV/d/E5D"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y19si3650476pll.454.2022.02.14.11.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 11:08:14 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="UV/d/E5D"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 752118EB5D; Mon, 14 Feb 2022 11:04:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346888AbiBNKXv (ORCPT + 99 others); Mon, 14 Feb 2022 05:23:51 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346722AbiBNKVu (ORCPT ); Mon, 14 Feb 2022 05:21:50 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C217DE36; Mon, 14 Feb 2022 01:55:56 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9017BB80DBE; Mon, 14 Feb 2022 09:55:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3184C340E9; Mon, 14 Feb 2022 09:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644832555; bh=za+znYSgbhf0ycyD96oqYNU6ulxWPNb7LNxbXB3qlyo=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=UV/d/E5DqMrcjwq2gyPTgsTVJ2O2VOKhR1K5uE6hIbFAqwyntn1IyxXoNAL7E1ccD A1gScG/iu9cPZziLQHZZxBaQGPtvnJWopYDRUdDjcTAQ8O2Z3Mq05QhG0JJUYgxlCd BeWXhhPJ4EQQuaSNQL/bfphY6h4Gh6Rk5UoqvOQ+MDhzKt+WXbDZ1oL6G/Tk1bR9oh 1E9k6r3VwjojLR884/D5RSU1EaDpszAdrxq0DTlywNzyLajvIICF4olvmJyk57uQL/ b0Iw6wBdYFeCzRA3jGvcEkQYCi6N8w5A0YtnlC/V9zD6Z/6d2TaRwXrb7aku5T8Sv3 zMqygAXXDO0ug== Date: Mon, 14 Feb 2022 10:55:51 +0100 (CET) From: Jiri Kosina To: Aditya Garg cc: "alexhenrie24@gmail.com" , "benjamin.tissoires@redhat.com" , "linux-input@vger.kernel.org" , Linux Kernel Mailing List , "paul@mrarm.io" , Aun-Ali Zaidi , Orlando Chamberlain Subject: Re: [PATCH v2 1/3] HID: apple: Add support for keyboard backlight on certain T2 Macs. In-Reply-To: <1088ECFE-B356-4731-AC8A-09A4421DD7D1@live.com> Message-ID: References: <67E7EA8B-CF21-4794-B7B4-96873EE70EF6@live.com> <1088ECFE-B356-4731-AC8A-09A4421DD7D1@live.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Feb 2022, Aditya Garg wrote: > > > > On 24-Jan-2022, at 8:38 PM, Aditya Garg wrote: > > > > From: Paul Pawlowski > > > > This patch introduces the requisite plumbing for supporting keyboard > > backlight on T2-attached, USB exposed models. The quirk mechanism was > > used to reuse the existing hid-apple driver. > > > > Signed-off-by: Paul Pawlowski > > Signed-off-by: Aun-Ali Zaidi > > Signed-off-by: Aditya Garg > > --- > > drivers/hid/hid-apple.c | 125 ++++++++++++++++++++++++++++++++++++++++ > > 1 file changed, 125 insertions(+) > > > > diff --git a/drivers/hid/hid-apple.c b/drivers/hid/hid-apple.c > > index 24802a4a6..c22d445a9 100644 > > --- a/drivers/hid/hid-apple.c > > +++ b/drivers/hid/hid-apple.c > > @@ -7,6 +7,7 @@ > > * Copyright (c) 2005 Michael Haboustak for Concept2, Inc > > * Copyright (c) 2006-2007 Jiri Kosina > > * Copyright (c) 2008 Jiri Slaby > > + * Copyright (c) 2019 Paul Pawlowski > > */ > > > > /* > > @@ -33,6 +34,7 @@ > > /* BIT(7) reserved, was: APPLE_IGNORE_HIDINPUT */ > > #define APPLE_NUMLOCK_EMULATION BIT(8) > > #define APPLE_RDESC_BATTERY BIT(9) > > +#define APPLE_BACKLIGHT_CTL 0x0200 > Jiri, should it be BIT(10)? 0x0200 is BIT(9) if I ain’t wrong. Yes, please use BIT(10). Thanks, -- Jiri Kosina SUSE Labs