Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp314769yba; Wed, 24 Apr 2019 01:28:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwPP+Fhq9G6l3kxWdoIH00CnyFgEqIY5FNIrF3mq7DoiDEnZSBMwoo++WuVN5/h0Jm9Pwd X-Received: by 2002:a63:d709:: with SMTP id d9mr29755279pgg.38.1556094502188; Wed, 24 Apr 2019 01:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556094502; cv=none; d=google.com; s=arc-20160816; b=V8IvNuW9p78gWsYwurhxxBUUSPndUDgtQWp5F8NTg06sM4IoYPQW34mPi7UN3qnjco 7cuttOIiLiCbaxgws9VDW1PWLiRvBrrTm2ZpK7PqvisImeeUxDqM6kTzpK10pdCxze4x N43JTQVGsoahLgP7gE9kS5curcA0VGDV5PCydcld5fuQa57GerX7v+c+5tkpHYJBHqy0 uLwPzIn42iZKtyPWpQWWFSekm/NZUj2cNR4noOjfgIQWv5VXLBhX04fHYIQyz7FprYtb 2uml3/DUYYvO/FhdId1zGa2VL+PEcSQ8PZWc9bsDIhkXe/3WXwMkReGe4dRvPolOX7Gq QABg== 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=OPZ9dJ/Sumti8SAGFEb+a7kooYVwmzJHs7Tub8DyfPU=; b=Gqd8P4t9VGY2ONHVM8Mi67oHCnSrCKWsJS5N8gwVQqUi7BG7E8AIkflvWDqX6M2I9P 9llcA9G2h7y+7JNSmIsqIDWTpy0TP8N7F1EbpLeVk9MzuxjTXfsapEFgz+XuIvWgSa3P UXiXTAPEEseBrq2hPeAYIicfD0qTlZz6AKVsNaxuW8e8z6qX+puUQfuQlUM4r4f4epur s4+iqVYllZNyIYE7vr026WI+sv54opRfN41rvPm4ZHccm3b2hFkkj4sHXhcoRCu6frXl EbhWbKRPbBqNaKluoUEFJfAlTvi7h0Ps8vIfkyezOGGNk2P3QF1S85/NY2Rc+ofnOFzF hBqQ== 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 b68si18891626plb.351.2019.04.24.01.28.06; Wed, 24 Apr 2019 01:28:22 -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 S1728070AbfDXIZw (ORCPT + 99 others); Wed, 24 Apr 2019 04:25:52 -0400 Received: from thoth.sbs.de ([192.35.17.2]:51342 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfDXIZw (ORCPT ); Wed, 24 Apr 2019 04:25:52 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id x3O8PghL032179 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Apr 2019 10:25:42 +0200 Received: from [167.87.52.237] ([167.87.52.237]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id x3O8PfvW007319; Wed, 24 Apr 2019 10:25:41 +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> From: Jan Kiszka Message-ID: <5a28f22c-22f7-760a-d076-68ff19800d44@siemens.com> Date: Wed, 24 Apr 2019 10:25:40 +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: <20190424081802.GV2654@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 10:18, Mika Westerberg wrote: > On Wed, Apr 24, 2019 at 10:12:42AM +0200, Jan Kiszka wrote: >> On 24.04.19 09:58, Mika Westerberg wrote: >>> +Rafael and linux-acpi. >>> >>> On Thu, Apr 18, 2019 at 11:23:49AM +0200, Jan Kiszka wrote: >>>> From: Jan Kiszka >>>> >>>> Validated on the Quark platform, this adds interrupt support on rising >>>> and/or falling edges. >>> >>> The irqchip parts look good to me but but the ACPI SCI handling seems >>> weird. This is typically handled by ACPI core based on the values read >>> from FADT ACPI table. What does it contain on this Quark platform? >> >> There is no FADT on the original Quark firmware, nor did we add one. As we >> are talking about existing devices, possibly not only Quarks, I was going >> down the ACPI-independent way to hook into the interrupt. But I'm open to >> learn about better alternatives. > > Hmm, if it does not have FADT table why would you need SCI then? Is this > implementing some real use case? > Maybe I'm looking at the wrong place: Where would I find it? There is definitely no separate entry under /sys/firmware/acpi/tables - but that's also true for my workstation. In any case: The hardware defines that the GPIO events are sent via SCIs. That fact is probably not expressed in ACPI language. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux