Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2801939lqp; Mon, 25 Mar 2024 09:33:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLWs3kyqw4oJQlLofTrBD/VCiXeCAxpusdMdCy5kR+ECEh1YAn9d05SAkh1BxTfwshctHexxj3KEOIYUOqJ2c7ftibcVpgN6yTqQ9jNA== X-Google-Smtp-Source: AGHT+IHmxjYi7/Cg/ujGxFn/mFx2AhulxEvjSIHyYmpJL80jxFw68Fxadh3VRtbnWrYReFJg0kv7 X-Received: by 2002:a05:6a20:394e:b0:1a3:6ee8:b84c with SMTP id r14-20020a056a20394e00b001a36ee8b84cmr417734pzg.13.1711384404474; Mon, 25 Mar 2024 09:33:24 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id y19-20020a631813000000b005e4a4aa2528si4771965pgl.48.2024.03.25.09.33.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 09:33:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@OUTLOOK.COM.AU header.s=selector1 header.b=C1JhwFkm; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-116513-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116513-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=outlook.com.au Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A710CB325B5 for ; Mon, 25 Mar 2024 12:51:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC3B913E053; Mon, 25 Mar 2024 07:32:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=OUTLOOK.COM.AU header.i=@OUTLOOK.COM.AU header.b="C1JhwFkm" Received: from AUS01-ME3-obe.outbound.protection.outlook.com (mail-me3aus01olkn2155.outbound.protection.outlook.com [40.92.63.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AF2A61B6FD1 for ; Mon, 25 Mar 2024 04:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.63.155 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711340882; cv=fail; b=bYCqbKVSO+v0yl7U07W8U2oGRAYCX3tC37SGC5hq/ZK+nQawu4ICrabmr2h31aIOBbd99Ux2SfyTaPCOzucUzLk+kYWgQEtUSOOGCnWt4Z1Tn2gV6qM4ziRyeK1CPqzRdTUG5XpvNIoInzKTRMHDHjfZZn7zBVgTii5cheQrQdk= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711340882; c=relaxed/simple; bh=sBdH+zKfVHkHbA+paxIdyTnhAE+cEwLWyc+mpd/9p7Q=; h=Message-ID:Date:From:Subject:To:Cc:References:In-Reply-To: Content-Type:MIME-Version; b=Qro3DDqKh7coDNy9/mOWvCySDVX+ze9a5hErbutqdXlHid9gMdLXbHcUTQ5VXNAh0fq4L+hXzqfGVeY8akQzPwtg2E4UBU9Dvb0Kz5HBDD83jxH1snvsIzN547pRNeKNQ5VUVd4V1HeBuuWQjlVTX8BOi1BPiRq3wuMudHyKZuk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com.au; spf=pass smtp.mailfrom=outlook.com.au; dkim=pass (2048-bit key) header.d=OUTLOOK.COM.AU header.i=@OUTLOOK.COM.AU header.b=C1JhwFkm; arc=fail smtp.client-ip=40.92.63.155 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com.au ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hv7snWpClvp0mIoofpxA0JgKFIOPxWTDJ7VkBxxYqVhASO+p6uHD+ynxN/eXyS1ZALNK7V6jzIGUo3h5O8n0ZPaSa2XX9cAm+jmr4WaCDMss+t7oVTOb6pLhJDX08Op8/gowrjrtyIhTaEM0X991bsI5qvELYiS57dXhdkew71PQ3BnGJSTa4sot1q4rVvdxh0KXM109OwCIpUXdnWDR2PBJrMKTb1imud/Lr+Rj9fTdQ0lUCDG1Ns+MiwdJCgHGiD50qUJlizZROxqjzmvqH2Gc4FxpzWQ5rPTC1J1FDb37lRv1/6/QOe66skpn+rMcCgsmj2ROHS1xFA6Bic2FvQ== 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=Lpk/sA8/07SG+Tdl8LzGYjJ9zpc8O3DEhnMUBKqOVPM=; b=ZaAPJ2fjgcEGGCwVBqOwVKDJbUWr8p+64LuGKPk075n8thk1CYopynkn+pe11aHIuTaQ6d2OtQxgPZA8ZLeXKY/nPwrBGmSPBYSqB+aoreu+UTIJ6ia4JnlriP9S6vq4wKwG+KimWwIG3mSW2WnHvKUPdWv7nqiZ7sXiStIeFphA9Lh7WDO7Fh57oH4VK3ZXAkEU1jOpynNXenrfR6heehfK0KOBXqFqIcKIauA0m4sgJBKH6DKZzrT4BH7KRRnL1+mD4UKxwyZP75DtD2RR8Lta8Ahe1DGXR9+qwfx1AnOliMx5xpeI0CO5GMMGA2GwxUZdaguddyNcJp3bTjID5w== 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=OUTLOOK.COM.AU; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Lpk/sA8/07SG+Tdl8LzGYjJ9zpc8O3DEhnMUBKqOVPM=; b=C1JhwFkmyxCpgvw2ClPpi5+8+KbgbqZHJ4KvomFy+VHJDC9ROanOmd6X9xOZ+1B194crlopq8l5/7+sdzLsa7r8l7E/ptCtHbpdWvtg4Zrv2+rapkgi5C+/t7amK6LNlMb6cS7rYdkIALZpBn5Gf10gY5N16gpYpckmaNP7slCGTl7fydCc76jKZ54c/xyz1/+5jw6ONfpvOa+ydl+7BRc+Qm6dLtQX2JYK/dh58Y/p6jE0rhZqpQD0sNkaS7OnQwDqGohuQJIs5ggAd1jLWkoc1PM5skkv0N3RBBlIWkRcISwUL4iQ9FIHPdKspRkXPd/+qaPUflQHyNwfSqnW57Q== Received: from SY4P282MB3063.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:159::9) by ME3P282MB1747.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:a1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.31; Mon, 25 Mar 2024 04:27:56 +0000 Received: from SY4P282MB3063.AUSP282.PROD.OUTLOOK.COM ([fe80::22c8:76c8:58ad:f00d]) by SY4P282MB3063.AUSP282.PROD.OUTLOOK.COM ([fe80::22c8:76c8:58ad:f00d%3]) with mapi id 15.20.7409.028; Mon, 25 Mar 2024 04:27:56 +0000 Message-ID: Date: Mon, 25 Mar 2024 14:27:54 +1000 User-Agent: Mozilla Thunderbird From: Stephen Horvath Subject: Re: [PATCH 1/2] platform/chrome: cros_kbd_led_backlight: Automatically enable keyboard backlight control if feature present in EC To: Tzung-Bi Shih Cc: Lee Jones , Benson Leung , Guenter Roeck , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org References: <20240322102800.1322022-1-s.horvath@outlook.com.au> Content-Language: en-AU, en-US, en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [amIU3wDL79bUWg7JZcEtbqGJp5H04I+/P2n1+OJ2qSohczgXRYdcC/1MKEpajdWQzt2f4g9FPuI=] X-ClientProxiedBy: SY4P282CA0010.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:a0::20) To SY4P282MB3063.AUSP282.PROD.OUTLOOK.COM (2603:10c6:10:159::9) X-Microsoft-Original-Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SY4P282MB3063:EE_|ME3P282MB1747:EE_ X-MS-Office365-Filtering-Correlation-Id: 1347cb5e-d267-4cf9-603c-08dc4c83f1d1 X-MS-Exchange-SLBlob-MailProps: 7qh87CJt6y28mnXrYaz3TbdiDbghv9xw0CB7WsKaKNjE19jLC1uofT5Tcsq7Li+hDHHS09RxIgZhDhlPodWk6r+ENudonLFfukQ7QeF0DDnzTtXCLHxZiO5H435q2tIhg2oUMXmzqs/RY6eYzpXsQgFzGm2CTxe+XLNjRO7W4N+LIEU2R+NUIXOVz/dG1efiIvSfIpoX6XTMVgqcUVUrSmtb6KXpi6Yg5MymgSwi6lJgLB7G7WxZXljZi/+whMM2U6BM3uuZ3ffhsHZt+KvWlvKQ2FayZN3KhOXNspWlUhIOLpAGwzIg/lAP4BDTl1S1onUUYOQ1lTXqVnVCe4bNPG0HfR0HTQyoLLx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BAXk2YIUlGO1SiCeBylRXguRAVHH+ejfyPrw?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-746f3.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 1347cb5e-d267-4cf9-603c-08dc4c83f1d1 X-MS-Exchange-CrossTenant-AuthSource: SY4P282MB3063.AUSP282.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2024 04:27:56.2801 (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: ME3P282MB1747 On 25/3/24 13:24, Tzung-Bi Shih wrote: > If they aren't part of commit message, please put them after "---". Please > separate to an independent patch if they fix different things. Alright thanks, the separation thing did kinda occur to me after I'd send it, but I will do it next time. > I'm not sure if it really fixes anything. See [1] or [2]. Ahh okay, I guess it was probably a side effect of me breaking something else then, since the module only seemed to crash without that change. But I was also mildly confused how it seemed to work fine like that elsewhere though. > By current design, the `drvdata` should be provided by either ACPI or OF match. Yeah sorry, I didn't really know of a simpler way to do it, since it gets started from `mfd_add_hotplug_devices` in cros_ec_dev.c in this patch. I'll try and find a better way if I decide to make a v2. > The patch is ruining the use cases in OF world (e.g. [3]). I was kinda worried that the module would somehow launch twice, but I have a feeling that wouldn't be possible anyway. Thanks for your feedback! Steve