Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6026867ybv; Tue, 18 Feb 2020 08:27:56 -0800 (PST) X-Google-Smtp-Source: APXvYqx9qcqdTpsy+mO5Pb5w+x/8NJlOM6B4ldFtX+UBBjx84X+mAbu++cDSuKqo87PID9ECqNnn X-Received: by 2002:a9d:bb8:: with SMTP id 53mr14875532oth.150.1582043276321; Tue, 18 Feb 2020 08:27:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582043276; cv=none; d=google.com; s=arc-20160816; b=pwAD7uQkDLMe9FmAwS4B8vyzNpPZYycqHSpZsk3AQIcKxDcpPoRcUImCf/f1FxfCe/ tEGdu4UMIGQyYMq7C0XT1UzxB/xZfiBq+RlEoc9ZxILLGRiYJt7vy75H0FThjMfknU49 RY9xzBRO1Sv4cPohLqefvdnntfbBQkE1QIFYJr1fJuhaT+IMjUBpcEq4MUztfAfznvR5 Sx48QeU0+zd5BbZ5v1EW+8X8vi/spa2QwgRreqHh7H88pFjKyiScdP1hYl1RIHcglyvT ifdqIK2oxuU4p3yPMuDM1RopXHAmExu7gS4EJOakHf8xUgnuYYjN+r8YRoeCKVH+5Ef/ 5R5Q== 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=UqphNownwr6sgXK7rj5UQi+6xZWrpr/G4F8SIoD54fo=; b=lnLnFd/UvxkCBubuvq89ViMWCs//h5kTlFZ2PVgeWhVof2kPqC4IekK3VTeYaW5KcO AfmRfhjOzK/DokwHfD5Ro8P+UWvOol2cIuLsCbeFZUz+g8ysRBrHtxgMY6310VoIbwj+ 6mrGkGVbv3Xkx5MqX/GEGFBEO/ed1U3hgpyVsqXQNO+WSyoapipolQW78/zgbLPxURlk B6YRYc+6TW6OcS0iG2yiuAfqpd209HvHiT8vGVt6yBHIK04frad2V5IwPWkVMmxiIg7g OPuPzscf8M9TZUewR6a+PIJt5xO1NNX8RFkwq+oX/1v+LnphKYLd8HAsJrRY+XqUeF8p WlDw== 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 b2si2254697ots.284.2020.02.18.08.27.44; Tue, 18 Feb 2020 08:27:56 -0800 (PST) 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 S1726683AbgBRQ1X (ORCPT + 99 others); Tue, 18 Feb 2020 11:27:23 -0500 Received: from mail-out.m-online.net ([212.18.0.10]:37601 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbgBRQ1W (ORCPT ); Tue, 18 Feb 2020 11:27:22 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48MR8R2sQDz1rfcQ; Tue, 18 Feb 2020 17:27:19 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48MR8R1ZxZz1qrnN; Tue, 18 Feb 2020 17:27:19 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id AKh25iX5XmKa; Tue, 18 Feb 2020 17:27:17 +0100 (CET) X-Auth-Info: FjyVC0AvfVuJZbbbHCumiarSvEf7DE3eoJ2kZJ3WIXU= Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 18 Feb 2020 17:27:17 +0100 (CET) Subject: Re: [PATCH v2 0/2] Add GPIO level-sensitive interrupt support To: Alexandre Torgue , Thomas Gleixner , Jason Cooper , Marc Zyngier , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org References: <20200218131218.10789-1-alexandre.torgue@st.com> From: Marek Vasut Message-ID: Date: Tue, 18 Feb 2020 17:25:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <20200218131218.10789-1-alexandre.torgue@st.com> Content-Type: text/plain; charset=utf-8 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 2/18/20 2:12 PM, Alexandre Torgue wrote: > This series adds the possibility to handle gpio interrupts on level. > > GPIO hardware block is directly linked to EXTI block but EXTI handles > external interrupts only on edge. To be able to handle GPIO interrupt on > level a "hack" is done in gpio irq chip: parent interrupt (exti irq chip) > is retriggered following interrupt type and gpio line value. > > In exti irq chip, retrigger ops function is added. btw. this might be unrelated, but is it possible to have e.g. gpioC2 set as trigger-level-low and gpioD2 set as trigger-edge-falling ? It seems 8eb2dfee9fb1 ("pinctrl: stm32: add lock mechanism for irqmux selection") prevents that.