Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp111020pxf; Wed, 17 Mar 2021 00:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd0GZGqeitnZY6hbkVqC5Nj/4gn1YMjbniuxXqATQj0C9n8LwGvX8jqyecW2UdvoO+yHey X-Received: by 2002:a05:6402:27d4:: with SMTP id c20mr40839984ede.271.1615965110196; Wed, 17 Mar 2021 00:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615965110; cv=none; d=google.com; s=arc-20160816; b=H/ybsP0fVU7MwR3ygC6Y6QEhYXBlBMXQmFztaoFzyM+kbEXUhoV6oqdsNtHyFdJ2bS J4/Auccj3gqfR7VJUmY9/UacLsuik8oCDvjeroRs4z+pzZcmT/+H3WTb8VYjfSmesjrL Uum3I4e14vuPDqL5EQDLKTTkjZTQNIQWwXG7ogPVc1tnalrXALBM7z/Z1iqD4/FVWZSf U5/5yBCTMLAks/8XAE6WIsXvi19Oihv/ZL8EdptUW6LLjFXyaPOSfHnx0I9BpnpbwAnr QYIrb7SbVa+lCf5KVEk37HuxwAeBYhjbRMFTBt4ZKHthsJx7Z5EjRHg2CPjm4urRWGm9 hBHQ== 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=TzN5Gm9ozcKBQ55CztFqeihVV6csPnjRQkWYgvSvtzw=; b=CWWmNMpXUjdN7XKZty9+z7Gte8T3w8BbhIPBBVTRYMX+qGAWXdbu5HTADugigVZ+wO TI3oluJqiZFuqTVvNLSQFNmLmZx1LYAA/pYf3ijkf6a9SCH8Gwy9RwP7r6OHgWU9OJao w+BwzV+nGR5uKLHls5MZ6sm1ZrMvVBV7lB4Okj8szNjGzqGzD/wKDL5vzUM4hYT5M6Ya 48TbHxf86cEUugNH7dk6KvKetY75OWHPV/O1bVNNte+H24yMVVa/ac898k2ceslnLVKT Z3Q6llj+PS71abYIbztXU5tKTYkccZ6Wf+S4Cm8fSU7Tv0a0QoFc/wW/PQl8Be9ho5/P 50gA== 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 i6si15433674ejk.722.2021.03.17.00.11.26; Wed, 17 Mar 2021 00:11:50 -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 S229613AbhCQHI0 (ORCPT + 99 others); Wed, 17 Mar 2021 03:08:26 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:52630 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbhCQHH7 (ORCPT ); Wed, 17 Mar 2021 03:07:59 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 12H77lLO019222 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 17 Mar 2021 08:07:47 +0100 Received: from [167.87.41.130] ([167.87.41.130]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 12H6vja0026646; Wed, 17 Mar 2021 07:57:46 +0100 Subject: Re: [PATCH v4 2/2] gpio: sch: Hook into ACPI SCI handler to catch GPIO edge events To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: 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: Date: Wed, 17 Mar 2021 07:57:44 +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 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. Jan > > It took me a while to gather all bits of this puzzle. > > At least now I get an event, but kernel oopses, I'll continue debugging > tomorrow. > -- Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux