Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp200522pxf; Wed, 17 Mar 2021 03:10:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr+qRyhUZMnF+mmMnhY14wVgMbQw41eUDCmmIEPasMG8++xPWVusIgb8rXB+21kyOw9jNI X-Received: by 2002:a17:906:f44:: with SMTP id h4mr33681986ejj.204.1615975828698; Wed, 17 Mar 2021 03:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615975828; cv=none; d=google.com; s=arc-20160816; b=AQfNLiBaHCpoHiy6jVgacG5ue+tDwUlVdB8H077tPoRnm7Ahazyfhr8wuHTAb/bEcl fOKLTedZgvN0QJprkiPVQDmYjebPqLtaeDFTBNmWVcw2rBeQperXE8dWQ3+PD9Q4DGKQ LHBMAg27byk845Itjy7KVz/O9aoY12fg6o7YQP91OUTcIDI+x/ssYTyBBjDzWoXsxzwr 1Kpd5jkmOmvznaAxxYIstEeaXtFD5ofoFieX1OCkR9aeZXY+9npHqqgA2wRfvm/SrYXH 4NNsqNM6ELpy/bJNCx093GjOjXuR58iKdq/1trnkBh+wuym2RaoiIugQVbnKUqN7nRL0 B8Xw== 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; bh=69eeZuQsJeOKVFPLLngKvKfQf+3l1caYV7QyxEj7v+A=; b=c/81blMnOQZeZ60djMl2ZZpBtUJgVx2ZLtB6pNvWALOamrT90diPALgaNd+bIze8/g mOx5USDajxjkyTd7/iMYyac4v8k6Q+jN1ulP8w3Qbi3+dXWoYOD+TD+WOzuD0MGQnmld aRjaKbMpSUnZAb8X2aiY+zU6gSeLMEdtO9B8xCyR52HEAXxo5xIo/qTIRY1l4cO6us/1 3nT8LgdLvP0AfEkmlsFDLpxpUs1UuKE0speiQ6k1IxsmEooQewog85uhlH5yICySeJoB af3nLqB4PUsNqai+Sv+OwAGzoqaU60oZO9LEGX0RSJPDzJ42lKRJjwvFLeA74D765qmS TrNA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb4si16127010ejb.642.2021.03.17.03.10.04; Wed, 17 Mar 2021 03:10:28 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229526AbhCQKIP (ORCPT + 99 others); Wed, 17 Mar 2021 06:08:15 -0400 Received: from gecko.sbs.de ([194.138.37.40]:37801 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230001AbhCQKHu (ORCPT ); Wed, 17 Mar 2021 06:07:50 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 12HA7fur024269 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Mar 2021 11:07:41 +0100 Received: from [167.87.41.130] ([167.87.41.130]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 12H9vdCQ006344; Wed, 17 Mar 2021 10:57:40 +0100 Subject: Re: [PATCH v4 2/2] gpio: sch: Hook into ACPI SCI handler to catch GPIO edge events To: Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Linus Walleij , Bartosz Golaszewski References: <20210316162613.87710-1-andriy.shevchenko@linux.intel.com> <20210316162613.87710-3-andriy.shevchenko@linux.intel.com> From: Jan Kiszka Message-ID: <86f3a770-3b90-5fdb-7811-789118dad375@siemens.com> Date: Wed, 17 Mar 2021 10:57:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 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 On 17.03.21 10:52, Andy Shevchenko wrote: > On Wed, Mar 17, 2021 at 07:57:44AM +0100, Jan Kiszka wrote: >> On 16.03.21 21:49, Andy Shevchenko wrote: >>> On Tue, Mar 16, 2021 at 06:26:13PM +0200, Andy Shevchenko wrote: >>>> From: Jan Kiszka >>>> >>>> Neither the ACPI description on the Quark platform provides the required >>>> information is to do establish generic handling nor hardware capable of >>>> doing it. According to the datasheet the hardware can generate SCI events. >>>> Therefore, we need to hook from the driver directly into SCI handler of >>>> the ACPI subsystem in order to catch and report GPIO-related events. >>>> >>>> Validated on the Quark-based IOT2000 platform. >>> >>> This patch must be dropped completely. SCI handler is not correct way to do >>> this. The proper way (and we have already few examples in the kernel) is to >>> register GPE event. >> >> As explained above, this is not supported by the preexisting firmware, >> and there won't be any updates to it anymore. >> >> This platform is history, the SoC was discontinued by Intel long ago, >> and our devices reaching their support end as well. The race to upstream >> was lost in this case - backlog too long, we being too slow. > > So you have no device to test and there is actually no device which has this > capability in the wild. > > Am I reading this correct? No. We do have devices but we don't have the time to invest further into bringing missing features upstream - not to speak of changing the firmware in order to support cleaner upstream integration. For the remaining lifetime of the devices, we are stuck on 4.4.y-cip with a few additional patches, including this one. > > In any case, we have platforms in the wild that actually support GPEs and this > makes sense for them. Sure, I don't want to judge for them. Just our original target of this patch is no longer relevant for upstream. Jan -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux