Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp192213pxf; Wed, 17 Mar 2021 02:56:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytEODCmyryoo4hJUpABtfHCLZNdoDyTgJ5myDRTR0pU5nHghbezzbz62LD14XvqYTJr4UM X-Received: by 2002:a05:6402:34d5:: with SMTP id w21mr20037734edc.14.1615974972910; Wed, 17 Mar 2021 02:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615974972; cv=none; d=google.com; s=arc-20160816; b=ZNeUaBw4fYW5el09/2SCPzmfLsAEPd+Vv6c/lydPB1vPZ+dQZo038BlZGCaY3qh5GN 6cA9tL/7TQ/93mujVuU7KRXS0e81192fxVVi3DjzB1FkQLmHbwSShL9dUlB/TMmhWFJx GF0PRz4C+CYr7zWz1+ECWgPh9xTepAcB4NkmY/l51R8uTGJgdAqcKL7E6lQvHpj+wQsU mNDpi8nfy2DgihnWZwIMNqhiRIbSwziLEdavS3Y3FF3KMguFJ1Ys2OMewt5AtzPlzSz8 uH0BfTeFTIn2WjVEoz+gZB/kR71w1kgGoqHQEsGMienAxKtbXKo+vLroL6RJDDHRoddt eaBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=y0J49S97nc3sXgPDUQoQJ18dCbiV5nJJHrhEBKJBtoI=; b=ZcHSth9IFcqOM1UCH6DttpqrsEptN+kSRnCns9C09JcYDOMyTUPTDUAvQ8J8eM4oV2 +jX6cB9rViUG8wPZjNPfX8YYgyyRpmwoWGr5sYb06k7lPjg0vjoyY3my4SwXeccj1rcd mwyhxidJtqtRqlNt3j5aS24+Xu1cJWnyJH8Z+Z6QMIdI6sN6QeoQBVz0ZWLouUKpc/xQ PuVIa3fO50A/OFzQ98W0C/74pD1c8NH+9kmZ7mzRz0l5kcSSa6YN90GOFaIZDjS1Rjto eyys9w5zHTEAtLhKMVhYGaAmYjAfdxQzYRsxwR6Yu4an27ZLR90mLun+qvjK00lCMf1B EylQ== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si16136655ejb.259.2021.03.17.02.55.50; Wed, 17 Mar 2021 02:56:12 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229904AbhCQJwp (ORCPT + 99 others); Wed, 17 Mar 2021 05:52:45 -0400 Received: from mga05.intel.com ([192.55.52.43]:46872 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbhCQJwa (ORCPT ); Wed, 17 Mar 2021 05:52:30 -0400 IronPort-SDR: l+CO9aFPPdqQQXMDOxN+j3Fw7xEbdcv+6+D10KnTIJzBx8cOF5J/tT4qYTZsOFlyZ9nN99Sc0i FYaGTR0anORQ== X-IronPort-AV: E=McAfee;i="6000,8403,9925"; a="274477153" X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="274477153" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2021 02:52:30 -0700 IronPort-SDR: QTKiVcReQ5/yHaiWsHNSJYGAkv4I7n1sJ+qSQyX9M/Kjh2f/yneA+JE9/Gy/2LkFFq2t87DJLt verHRtbFbyyA== X-IronPort-AV: E=Sophos;i="5.81,255,1610438400"; d="scan'208";a="439381740" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2021 02:52:28 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lMSqo-00DDvi-1P; Wed, 17 Mar 2021 11:52:26 +0200 Date: Wed, 17 Mar 2021 11:52:26 +0200 From: Andy Shevchenko To: Jan Kiszka Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , Linus Walleij , Bartosz Golaszewski Subject: Re: [PATCH v4 2/2] gpio: sch: Hook into ACPI SCI handler to catch GPIO edge events Message-ID: References: <20210316162613.87710-1-andriy.shevchenko@linux.intel.com> <20210316162613.87710-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? In any case, we have platforms in the wild that actually support GPEs and this makes sense for them. > > 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. -- With Best Regards, Andy Shevchenko