Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3801040pxu; Tue, 20 Oct 2020 00:17:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynC6/uKzT1O4h+tJXTsA/Yi4tkkreIKwfwvd3PfYl3acgLRSD2bl4TGbxaSYcGpyir7mer X-Received: by 2002:a17:906:30c8:: with SMTP id b8mr1850895ejb.77.1603178256318; Tue, 20 Oct 2020 00:17:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603178256; cv=none; d=google.com; s=arc-20160816; b=R9ml9CpcrNoqK2o7fTYaJUqbJl9Or8w5z3x0xL5cCtDFYMuwWUJgMgK6VMZftwG0Ya nHbaJk+pjX+BSB8pcwIpcNkJ1Vuwd/IsImUMjHuQ/01fzCTtCX1+LSpyKy5fVzzpKVEj vwYd8RFTS0OGSGYw2Q5boSg9q3GBN6OTBrLx4UUPdV0smc3ckv4ooksIPVv8wzZ7Cs5T hE7hpvFAlhrqYziNTdjSn0BTPiDbR3ijk8NXL3YUCZFZxDp7ZSx5wlhw+0FhWf0aGvNj PgdKpm2RX8pXHXZ3WYNtvySs8qIT6IKquqsEOFVkPa67SGIxGzVpWfC78/Lz9nFUtkWb fTmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=B2j2o9+XA9EuJHo370jNyNDcY1iI2eMgwcD1Ux/NbX4=; b=vhYdmdNKXwz+J9Y/JmbaeDW/wf6Hw3zRaD/JPw85UHdqP5FuxkLZszhhDVyL1HuWEM fElVImKuSDfYT15TODmTPOIZM9UQ61e4vt6KLZbeKpTaJPg40rPExqRyA/dPOBM3NCzX D0yqq4FNVCOPsl8cjkQ23iPOdRQkezC52X/+wdcT0Oo2mRBGfG7gtT7oS36I6YrpLpXP 4o+ueGkX/tBE2jmo0uHRUzmMhYLHRnb66XBLJ1J8usunvOIOOIudNPYyXDIJqStdJsRl iBydkqtT8XWOUqITufJFev64bQ+oybJrf2YIw/yZHz+E8VDTtVSoC4f0RzD5MfjOWZNp a44A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=djENMFTX; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk14si690430ejb.56.2020.10.20.00.17.14; Tue, 20 Oct 2020 00:17:36 -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=@redhat.com header.s=mimecast20190719 header.b=djENMFTX; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730727AbgJSShX (ORCPT + 99 others); Mon, 19 Oct 2020 14:37:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:43824 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729511AbgJSShX (ORCPT ); Mon, 19 Oct 2020 14:37:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603132641; 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=B2j2o9+XA9EuJHo370jNyNDcY1iI2eMgwcD1Ux/NbX4=; b=djENMFTXpNAw2CSFAPTiE4nA5MBvtDtZHoClIpi7aM3vUShRg/OVcRyslL7IUvD/jEQllT f/h7449Rseozixlirz805amx55BAxYLaSbTQnLYyUz4xFZr3x14RV2SyT16dHff3eixgS7 d3rjbSfp2MVIoZvF6ZM2jKVSa+qYrpw= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-165-s4Rx0bzuNVye0-xlAryiwg-1; Mon, 19 Oct 2020 14:37:19 -0400 X-MC-Unique: s4Rx0bzuNVye0-xlAryiwg-1 Received: by mail-ed1-f70.google.com with SMTP id s21so124371edi.6 for ; Mon, 19 Oct 2020 11:37:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=B2j2o9+XA9EuJHo370jNyNDcY1iI2eMgwcD1Ux/NbX4=; b=EhSyaisEqBh6DwR4aWf6oVmlhG6zUnyws/osCB9PrcPjV5DlV0fDWXif1vgt9WpShY ynaYNGfv0kBx9alcgibKfVDCLHdFXxT7imfqC1LW6Fa/lk6yc2wO5NZVhe005HUCUEQ9 6Y9Mp7QeQySMWCzUszHw61k9n1EyrFPEZvGsC74NJuwf7pYuQLUBjw0vhqouKXeCTg09 yfs8A72RtXICRIN/AwuPzcMqseX2X3Kl8HUnRtrgRyniXrHA9NMX7btSs0UT9p5Rmssq 2YmaEU7qFVUjnMUqnKgFkAoRQER1RkhtLauScOLAKBt6QdqUe0oujU/vxEgN2t2YvheT 8NNA== X-Gm-Message-State: AOAM530G5h8J6VpOvdOetUb9a+W5CPDzF0mn/H4BpKWPKcKvxgpmUXry SDzGLOss6KbFV63GvVN5QNI/aIbgUiCgUwi/xK8KnuVCF3KpScQsJug2XJDaI6C7jdbqZ1rEkSR xAkekK+UbdiI5A5MnpwONmaJh X-Received: by 2002:a17:907:435e:: with SMTP id oc22mr1261105ejb.485.1603132638117; Mon, 19 Oct 2020 11:37:18 -0700 (PDT) X-Received: by 2002:a17:907:435e:: with SMTP id oc22mr1261084ejb.485.1603132637843; Mon, 19 Oct 2020 11:37:17 -0700 (PDT) Received: from x1.localdomain (2001-1c00-0c0c-fe00-d2ea-f29d-118b-24dc.cable.dynamic.v6.ziggo.nl. [2001:1c00:c0c:fe00:d2ea:f29d:118b:24dc]) by smtp.gmail.com with ESMTPSA id r21sm565373eda.3.2020.10.19.11.37.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 19 Oct 2020 11:37:17 -0700 (PDT) Subject: Re: [PATCH 1/2] x86: Remove led/gpio setup from pcengines platform driver To: "Enrico Weigelt, metux IT consult" , Ed W , 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: Hans de Goede Message-ID: <2ba7fc12-a3a7-2783-54e6-27e9eb60ec9c@redhat.com> Date: Mon, 19 Oct 2020 20:37:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/19/20 5:44 PM, Enrico Weigelt, metux IT consult wrote: > On 14.10.20 10:41, Hans de Goede wrote: > > Hi, > >> 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. > > Sorry, but not fine. When a newer box is taken from storage into > production (eg. replacement or new installation), application breaks. > LED isn't the only problem, also affects buttons. > > The whole reaons why I invested all the time for writing general > purpose drivers (fch-gpio is separate from board driver) and bringing > it to mainline was having clean and generic support for these boards, > instead of having to carry around special patch queues forever and > in near future just using stock distro kernel. I guess that's the > main reason for very most mainlined drivers. Ack and that is how things should be done. > This will be defeated > as soon as the whole thing becomes board/bios specific again. I hear you, but if newer BIOS versions all of a sudden start declaring their own stuff, then we need to come up with some solution here... Not sure what that solution should be though. Regards, Hans