Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp583990yba; Wed, 24 Apr 2019 06:25:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2FAro13yYv61Qu1KhAjoWmnBeAqAYRL1fWhDmLMMV8xVwn3KvuBSttlq1EDoJwDgF+1j9 X-Received: by 2002:a63:5114:: with SMTP id f20mr6010974pgb.450.1556112323041; Wed, 24 Apr 2019 06:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556112323; cv=none; d=google.com; s=arc-20160816; b=Ghgu5bdwWhw1BlYzqT3mjAn4bOaCzXJYtY6JQKg7OzBEBInQ8WvfK7kP1hp/97JbQr s0ZGwd/qvV6rN01ozyApiVmZFgYDbj96PchdQGME74IB6rfmyr5ueXRrkhb2IgOL+TO8 jNu07J2Owat5uDVQY4ogdDYCYrE6Zfi+ZnyLT60C67oquW56WQ9ezVNWZ+bAc2nFJ3gt y6eMYQO3IIf0K4kivoWR5FHdJ0t018WKhVHXVtwPsUm0bCe8k8P0+Mu26z3q/lAUdpPn aSC/wx8Yt+jioLG6UakPoLSHfY1i4y1LbEUhuZ58g7JKGYk8b9ObSJTjxyeEdL5et4Fl jLaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VnOcaEaHIPU15J09mKRQ9r7Ckon/Ylb5qS7n3tKKXUw=; b=mnMMtWuBE9HojNEhYxZjyCCNaU1e/qwiJ//SKNYhFFhR+mddKDTtWeM3S9lKA+WVkf W1US0Pi63N3xqcjQXJi/Z/qaY61QcQYUrUR80EpV8SFpnPag3pU699YyDEKo0YKRe6F6 vD3R4o6QQXNdUriVpVHBsF+a3cSnEU9RCcUpi2TdRhvapoI7sHK2DXrvmHwLGc6+HyaG TGUlBECG0ke83sAp8F1mhkzqME+OSg8SuIAORm7RggGKXnf2wO9pyhTkCLRR4VqAg2pZ tCo2DIBj4QvWk0A3TeO8QnzR6qhyVXMnbvYyCVCuz683ehaAcdDPYeM6aEO1SZSGs+lo Aoew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f3si19456048pfc.92.2019.04.24.06.25.07; Wed, 24 Apr 2019 06:25:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727536AbfDXJsU (ORCPT + 99 others); Wed, 24 Apr 2019 05:48:20 -0400 Received: from gecko.sbs.de ([194.138.37.40]:49025 "EHLO gecko.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbfDXJsT (ORCPT ); Wed, 24 Apr 2019 05:48:19 -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 x3O9mBR1022138 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Apr 2019 11:48:11 +0200 Received: from [139.22.114.195] ([139.22.114.195]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x3O9mAhw022291; Wed, 24 Apr 2019 11:48:10 +0200 Subject: Re: [PATCH 2/2] gpio: sch: Add interrupt support To: Mika Westerberg Cc: Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , Linux Kernel Mailing List , linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, "Rafael J. Wysocki" References: <20190424075816.GU2654@lahna.fi.intel.com> <8999d3f8-d169-eb85-bd2f-08c99d184ea2@siemens.com> <20190424081802.GV2654@lahna.fi.intel.com> <5a28f22c-22f7-760a-d076-68ff19800d44@siemens.com> <20190424084259.GW2654@lahna.fi.intel.com> <7e328b7e-f4f0-851a-4152-a9ffd058201c@siemens.com> <20190424094506.GA2654@lahna.fi.intel.com> From: Jan Kiszka Message-ID: <292e6eff-82cc-6e4d-925b-77a60399e2e0@siemens.com> Date: Wed, 24 Apr 2019 11:48:09 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: <20190424094506.GA2654@lahna.fi.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24.04.19 11:45, Mika Westerberg wrote: > On Wed, Apr 24, 2019 at 11:36:58AM +0200, Jan Kiszka wrote: >> OK, there is that table, but what is it supposed to tell me about the >> event and where to hook into it better? > ... >> [02Eh 0046 2] SCI Interrupt : 0009 > > This is the SCI interrupt GSI number. IIRC it maps 1:1 to Linux > interrupt number so you should see it in /proc/interrupts. When a GPE > event is triggered it should be handled in the ACPI core. > Yes, clear, all this happens already. But I need to link the core with the sch gpio handler so that the gpio event is filtered out and the right virtual gpio interrupt is triggered. So, other than acpi_install_sci_handler, how should I establish that link? Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux