Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp601322pxu; Wed, 14 Oct 2020 09:02:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyv37ArOMpTza+Y2BMh9ifmYRnPzhp3yfOnGLvjWHlnJMc7hEIZ0yoeCPjWTD6op5h+bm9k X-Received: by 2002:a17:906:aad5:: with SMTP id kt21mr5976918ejb.5.1602691364072; Wed, 14 Oct 2020 09:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602691364; cv=none; d=google.com; s=arc-20160816; b=DNvW72jGrZVpBEmcENa3i+CDKFdIHbRehecCfCXnwxFQ7fN/qqcwVNcRbT9vHH0acI GnAgVecI3e4vG7GaahUCI1y9hYFPtrfb5ZEyEsybyWX8NniYIWEOA8TruFULncZbpD9X 53MVCrEVev0DRTPQeudlWu0Yue4C6mmKTAZVJ0/pam8p4xcGbXtQYO0pfX47d/VWdGxQ j1ZlZ0wcssyomNqKkDmpY+SVyIKX1UZmMzfcoA6pi2Em+sBzNAEr6im5w6xPzsAOxBYY iTFTdqdd0HzOR5NtgsqMqTXHKW0H73tqKRIwFeCZMDU3Po8q0H1QcN4I96YgPQHLdBx5 U7Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=MqppSAJ/nKG+OEqXPwbLp9Euk/mEALvMk5IqKFtZ9Dc=; b=H41CJ6pHDcvuTKJj4H3qvdnwMlp4HHg9ud08VX2ar4II+5959ARx8NdfDygA5O0JQ2 xegwKi2UwfsqvLXFZ+SzgRW0+daLd/LiU3f77LaYUD7WrTG1IG5cqdXTV3xef0S7vzc4 J/DHwH8gi+oUfy69xe09bsmgnsdARkfiAcyXO78mGr1fxKPu1W7DpGH6imB4dkXL2kCq cbpzIxInwsCH57GDoxU3CVUD9O/l3i4HWX4HNFDcM9L5lyTrvQ80XU+LZlln6kr5fdk4 kqU8vMDMRXRlj/CCi44AXZLBrngdOD/NBjnFTH7SuMvwmYEWrxMZydkDfB92UWQL42HJ 558w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wildgooses.com header.s=dkim header.b=SoIXu9Cc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wildgooses.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si69408ejf.257.2020.10.14.09.02.12; Wed, 14 Oct 2020 09:02:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@wildgooses.com header.s=dkim header.b=SoIXu9Cc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=wildgooses.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730459AbgJNLVO (ORCPT + 99 others); Wed, 14 Oct 2020 07:21:14 -0400 Received: from mail1.nippynetworks.com ([91.220.24.129]:44076 "EHLO mail1.nippynetworks.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727865AbgJNLVN (ORCPT ); Wed, 14 Oct 2020 07:21:13 -0400 Received: from macbookpro-ed.wildgooses.lan (unknown [212.69.38.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256)) (No client certificate requested) (Authenticated sender: ed@wildgooses.com) by mail1.nippynetworks.com (Postfix) with ESMTPSA id 4CB92r2KlfzTh4d; Wed, 14 Oct 2020 12:21:08 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wildgooses.com; s=dkim; t=1602674471; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MqppSAJ/nKG+OEqXPwbLp9Euk/mEALvMk5IqKFtZ9Dc=; b=SoIXu9CcbxRZbIoWljtTLLF7r6Hwv/U4wiLon3QYSgZkjewBy2B551U/Exi2YfnlkLIIPD IYShJpl0yZEWqlZL5yeWnsxSvQD7UzVcbe/Cid9NTg9z+GFpe+3FR3X7VvB8uBYbejBCBp hW0a4u6DtJYtiZF61KHdnPT226OubuM= Subject: Re: [PATCH 1/2] x86: Remove led/gpio setup from pcengines platform driver To: Hans de Goede , "Enrico Weigelt, metux IT consult" , linux-kernel@vger.kernel.org Cc: fe@dev.tdt.de, "Enrico Weigelt, metux IT consult" , Darren Hart , Andy Shevchenko , platform-driver-x86@vger.kernel.org References: <20200921215919.3072-1-lists@wildgooses.com> <8058a804-a793-a5f8-d086-0bb0f600aef9@metux.net> <65efe44a-bbef-f982-462a-385fffe493a0@wildgooses.com> <0de126c4-f2aa-a817-0a38-32bf3ede84d1@redhat.com> From: Ed W Message-ID: Date: Wed, 14 Oct 2020 12:21:07 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.3.2 MIME-Version: 1.0 In-Reply-To: <0de126c4-f2aa-a817-0a38-32bf3ede84d1@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-GB Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/10/2020 09:41, Hans de Goede wrote: > > So I have a suggested compromise: > > Keep the current LED/gpio setup code, but make executing it conditional > on the BIOS version and skip the LED/gpio setup when the new BIOS is > present to avoid having duplicate LED entries, etc. in that case. > > I guess this would still break userspace because if I understand things > correctly the new ACPI based setup uses different LED names ? That > seems unfortunate, but I guess that from the kernel pov we can just > blame the BIOS for this, and since we definitely do not want duplicate > LED entries for the same LED, this seems the least bad choice. > > Enrico, would that work for you ? I'm cool with this. Enrico? I may have some time imminently to have a stab at a new patch. Obviously any help structuring this would be appreciated - it feels clumsy using the existing detection mechanism, I think whatever I come up with you should kick back and recommend a new board detection structure, but perhaps we can shortcut that step with a few comments up front? Cheers Ed W