Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2721750pxb; Thu, 3 Feb 2022 12:45:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxBhbvLLDNXYeAz0VMQAwCwbingvl0dhTKFg1q2VHEhW15oPH5fH1PQyNEoixqlNt/N9tAg X-Received: by 2002:a17:907:2d0d:: with SMTP id gs13mr31145083ejc.161.1643921114112; Thu, 03 Feb 2022 12:45:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1643921114; cv=pass; d=google.com; s=arc-20160816; b=vL8vmpQQvZm52zjZZHKiRPFTKkuHQPPZbusiwE+AydhrHaLgxeSKeigUske57VVHYd 7m2TBQsfOwqhexHNErQQpOfIoTczRBpBKCGHEZdV5ySZy9u/fUtcdYMUY5y1JmX+772T tPk3ilzcU2wVCUVfcyi+a8SbYeDDakiisbBnNgoAeP4brjB7ULY5iTbZa9Uyrzq8JA2H RZWv6pWI6BBMD/VAPr2VcS8BYOPkmd90QEwYxzhh7cKF6KLEDF5cd+VDKMBe2mN+kl+B PknWJBkPS9TqithA6lES6u/KqDwz7v1RR4NqG1r/VzcTsNeMO+0AQMiY4PXygvWlrtQO kDMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=gE0bWje60loqqni4n+dGV1gIeUzrP5Id3oAMMufB2sI=; b=bfuN/fMsBSmubGYFoMWNVzLZTpSV+3AQ4NMEaRpsdU7s7PeySlwNWi8pvrDuiLiuFK pOmUgv+7vSEGERFoinNwPnCwxTothlqsKwQt9HfiBxBOh8sq8g4g+eEA/Hn7q0OZTbJo sd7m+1IW3m7Fo6dm+3RpK856fjJry3QaxTpyKia//hjcRt0Di74fnkKW0Q4faXRSnLMZ DBdMtkGuk4JrhBFBWDTnBS//1tJObJ7oiJV/G7CiEmPqNu58XBCqYJXDJII1Uu+h9wuf 5MUmt8bqptFspncO2u/6Cc/FlR7gg0eW3Q3x5CXBW0pb1sUgPilDH66SGO5pCCw+C/kz tjpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=ryyIoxJ5; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p26si13466173eds.322.2022.02.03.12.44.48; Thu, 03 Feb 2022 12:45:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@live.com header.s=selector1 header.b=ryyIoxJ5; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=live.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350342AbiBCMPx (ORCPT + 99 others); Thu, 3 Feb 2022 07:15:53 -0500 Received: from mail-bmxind01olkn2034.outbound.protection.outlook.com ([40.92.103.34]:11492 "EHLO IND01-BMX-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235416AbiBCMPv (ORCPT ); Thu, 3 Feb 2022 07:15:51 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fW3BRvSrYndSHtnHCJJ+27VDvrm7ARXXyepPFwk7VlK8/eZK7DQxw7JXGsvr2jxpZPFye0sPMiE4GSxyb048+qJ+/YqpiSMmzA7Z7/zRvuiaVCI0ub8LAMyA+dUL82m+fB+/4761BuPcySLtUsPKsJAHgfdhILM6fCz+QdCfbOp7UvSZazll9qIh1jBHwUrz4lkYBzVvcULGvq1tbA7yySz2oVaOL96ShoM4ruz/SGZ1z5YgTOYzHzjTPB5/t2/XBfk2XHa5nh3gtYlYIhXcN/6v2J4GFjmbITNYFgh5WtgkazuN0u1wZl0DmfbR2rKpd+Q/QsadkV9qprMlhMn1XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gE0bWje60loqqni4n+dGV1gIeUzrP5Id3oAMMufB2sI=; b=IvKl1R4XwAPOw1NVcU5ib05CucHRXaGnyLPHUgxI3JlIG5Z7cg6TwLAYLVNvtt0hARxXyQFJha/cej0tfNEYQdhYxL+t0WX7VFweg2gtYIL8CmD8FcdZNQcPmmRZVwkx8iOtgdziA3nxGqutVHH4qW894fZ1EZEFaSRjdUcLLFUgUNuvj85dZCPyLYmh+r0f4AQCbumUpIj3ihC8ADy/MxSiuVIysJPwWExUvLs+m2xOe8jywNLxvUT3079ntY9Q/DnWeIJkUlE9ORsR3jMzFpM5rH6NV/FxVjwX/+eqZhCfYrifcRXBM3FFRqp5sCzID+IYvYYfg0O88Qo40jmxaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gE0bWje60loqqni4n+dGV1gIeUzrP5Id3oAMMufB2sI=; b=ryyIoxJ5G5lS8NfXcvM9jj1LGn37/mwJT6Glnz5oYF5XKVMAPoXAbP1Vx2K+STIv6C8wPemrr4VuimeFGphGT9H2w7eBqfCn2S/U8zfxzwy+m2VPe3ZR9PEb3aRPOJlnVvXMH5vUvN8fjUiZdrDgB9QgxaAMsS5RBHgDgSHU283f4W71XdYL2pNzKMZS9So5vqfh8+UJ/F4N4i3Wd8qBo2wqy+iIY9RYdZp/G1ovL/Vgcsh1B7NBEMVCPtoO8rU7XJ77gaUh/d7iDVeFdBYeZ3BYbiob8JaNwWmopmFX4xpYJ038z0iMXst8OncZS+q2nh9bmYZPJiMMcDd3jqKKUw== Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:1b::13) by PN0PR01MB7638.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c01:b4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Thu, 3 Feb 2022 12:15:46 +0000 Received: from PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::d19b:7cd1:3760:b055]) by PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM ([fe80::d19b:7cd1:3760:b055%9]) with mapi id 15.20.4951.012; Thu, 3 Feb 2022 12:15:46 +0000 From: Aditya Garg To: "jkosina@suse.cz" , Jiri Kosina , "alexhenrie24@gmail.com" , "benjamin.tissoires@redhat.com" , "linux-input@vger.kernel.org" , Linux Kernel Mailing List CC: "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. Thread-Topic: [PATCH v2 1/3] HID: apple: Add support for keyboard backlight on certain T2 Macs. Thread-Index: AQHYETQ7eA8f8fgzvkGVPkQueNltWayBzR+A Date: Thu, 3 Feb 2022 12:15:45 +0000 Message-ID: <1088ECFE-B356-4731-AC8A-09A4421DD7D1@live.com> References: <67E7EA8B-CF21-4794-B7B4-96873EE70EF6@live.com> In-Reply-To: <67E7EA8B-CF21-4794-B7B4-96873EE70EF6@live.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [Q2cjz1QUxaRby/1batP9Mt+QgWeqL+7KPzVcw+ZpOKcBA4WwVUCXFtYFCFENabCE] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 18528eb3-6b1f-4b4e-aad6-08d9e70ee853 x-ms-traffictypediagnostic: PN0PR01MB7638:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l2vujQid2rWjZtlhN71uFWnzCnOjoB/8oUQdWC0h95WXgqc0JqEcF4m+TOIwlp35XikizJlzUfX9TExeRkWI2c/9JAFp28ek7wiuMUYvlwXrkFCuREmxnN+ueFoewr6AmkU0HomuOVvYFK9Z/A6SW/cT7xtj4ly13xZV/AAIVr95KTOoNt5RlWxunXav9V41hEZOuqHGSjKGt39bsIKidNrj9gCMXX2gwpLHyp2mMTYEIW/WzZp4/XC71EnQDOijZv1znC5kZ76OtuJHhScqOWpMBF7Glr1ltlAIt5FpLIWaGxZ+noJIAHQq5Q07uIZbbHy7vjZfol85pH5DJpJKprIu+efI1S2kNRdnLnX0rqMd7uCM+4JsMr32jcjIlNIGCLmuqukgBIJl0KeCDokWLsOpIHnbtakO99YB/Gs7/3RvAXQJiDc6yFrmT+oyWQgncuTOJn6DQplLJsqCUc1T3wxwLIpEXQsSWc+a72cEz+6D38FwBZQNp35gFkF4iusU9HzPyTCWHVd7qfq71kizWCMYFWI+q4G/6q0fWbyluaX4h73r0gDr3G+k0G+GcuybjF8qM4bTWzOs7jskhccEaQ== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?ZDRiQzF6Nk1kOHZkZjJoVlFMamxOQzJHY1hjaDl3cEIvSVlJRENJaFFBQnFZ?= =?utf-8?B?ZFJoM2MwRGI1K1lJTFg3RmQyK1VBczFnWE9pMnBENm1neklzUjNKeDRUbzgr?= =?utf-8?B?QTJoT3NHTV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1QSExlWUxy?= =?utf-8?B?aHk1NEhNbm9NK05acEVZdnQzUzUvRE1peTlYelBJNEo1aktXN0V5a1BsZjJ2?= =?utf-8?B?RmExQWhYWXpMVHg4NS9OcVVIazBqbVRmSlFKTUdJdEtXT0x5Sk9SeDFPMGxx?= =?utf-8?B?aEZqaWRUa0ljdGNoRzdwR0JLNllsV2VJL1h0aDZRWHRhS1NjaXpCT2tBMlZK?= =?utf-8?B?eHZ0cjVNd2xMczZxRVFLL1ZiVVdwTUNoTzZaeUd1TUVyZ0RxbU4zSGxEOEFx?= =?utf-8?B?K0ptZjNneXNvMmFNemc5SEZYNUdHT2FzR3FsdndFYXdXR2dpOUtFNU9mT2N1?= =?utf-8?B?Zk16MkhFeTlwZnFacXhNM3ZuWmp3RFBJNUJiVlN6Ykd6dDNUTWlHL1pSM3Fw?= =?utf-8?B?TGNhYkdqczFzdUE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-42ed3.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PNZPR01MB4415.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 18528eb3-6b1f-4b4e-aad6-08d9e70ee853 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2022 12:15:45.9867 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN0PR01MB7638 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gT24gMjQtSmFuLTIwMjI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