Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1551234ybt; Sat, 11 Jul 2020 14:10:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0GpMnTHCvHRFQuZQCl1s39yP5/KelbU4LV2Ay4r4U/9xf0XrC/QbdaILqmnZys3IGhe1t X-Received: by 2002:a17:907:1190:: with SMTP id uz16mr65968307ejb.385.1594501859690; Sat, 11 Jul 2020 14:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594501859; cv=none; d=google.com; s=arc-20160816; b=Sgz7TEXEJP2D4QggIdVlEgrkjBIQrziUhCBvYcZvn2fm/RzK+/C06FOYPLE0A8REvB HI+Romy0gku/HVgUpNA8j5YHD4sQBynLpRyctgohWVQ+ZgGwJVWJURVepr7D1n7bXC57 oTbAQnmm8SKRqixLq6jOfo34uxLXBLh/IOpM4oj7OUi7MglbdBoM4+VZczKxiUhlI8cV aBO8PI95h29ENT9tLC3QqIYwXcOZ+QLaCBqXIr/B3k16Lmsty/tMhBdY7gI+iB6NXVfK UtmgGsxr4BW+jxOnB2NTCINAZ7Qb6ZBpJWdXv0plY3wzcSHCAjLRCpta12H6m+fDlCK3 pKng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QOWgRRxR4UWenTLYws4CoXraeapBalWta2FCOM+uc9k=; b=05eznAB63X+SHK9fBWogeVR1y9Elhgt4aauUyqUqq0E39QfkoK+4i2pDRKNvFlMhwz fG8iQSEk0GEAGPdS3SHJD8I/9S5ih6l6yC77RtAGe5o3VEh6P3JHi5sR/QgBQL7HY+lV wRwgjZ7/xiCFjCC1/SRtsK/VwuKBheIeusAn3e6u0W3Q+CbcPUDRgIEdqCzG2g5QG0xT Sd8J3bTCSWuwj9Wyc49teENtdUCyx6Oll4HecMZ1nYQFXQQPWeWJMEzUSD+LQUGA+wOi 5yHFAXK7ZYHD4doI9Fgbb/nf4jjDoq3vLXBoSgeKKigVtH1xJQmAyrNjLS4Ud29xgS1K 274g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sHHa8+6n; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si6373421edt.413.2020.07.11.14.10.37; Sat, 11 Jul 2020 14:10:59 -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; dkim=pass header.i=@linaro.org header.s=google header.b=sHHa8+6n; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726948AbgGKVKC (ORCPT + 99 others); Sat, 11 Jul 2020 17:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727110AbgGKVKC (ORCPT ); Sat, 11 Jul 2020 17:10:02 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B13FAC08C5DD for ; Sat, 11 Jul 2020 14:10:01 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id g139so5151019lfd.10 for ; Sat, 11 Jul 2020 14:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QOWgRRxR4UWenTLYws4CoXraeapBalWta2FCOM+uc9k=; b=sHHa8+6nIlJJQuvFQMaZWOUBweW42w+3iYH98jk4CNIe3q1h+bSrZhVqyAbwXh4v6K v/NcpV0QtlOQktytKw1wi8Fs2HtHByvIiHAwIFxHz5cQiG/HSL4cjZanmC9csp0QUTWX yIhN1baYwRytN3ha2eS8FZtwsVtrvYnO+112s9svp5ZkE9shCqN1k0MPn6/2eMZgtcS9 2Jt0m4Xa680WGnXG5JL4xJk6W3MdpNVjb5IDwm8SgKHyQpVPxvoKGWud+l1kwKlVTvKr 2I1hov+fTMzeNr8XLyEWHJIxNiTcuDwhzG5q2FJd3LCLFCN6rRyG8t0hThIlXYuCZ0cY 3cAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QOWgRRxR4UWenTLYws4CoXraeapBalWta2FCOM+uc9k=; b=o5Bp2mKS7rs1/4rUD39dty7xTi100f7qmVNu3zhBYFOpTWVr4hfjg+2gbhbZRmgSTo iBuH40Hn5/PLrbxxp8bqtG2fVh5ez87O9OKrNIDUStXvBaUmhHcKFzmBxdNijce1AXRE SJwnY0st85/L77Wh4EKaCpmZLAncvQUznL9iegS/DKceFTlykNrA8b2TaHA/ZcJieg7l /4i7rs2nlJ+yRYCulSFHL76hmwzZGdMck0+VBxmKf12lgcVC00pCzAe84udMQr+YBZLR x7GAbPl/PjKjN+NGKt1Vnk2UC5qJkz2uY8BYFXxSL9f0/vXQIGOXQf0cdvgNzDWj+ZDo vw+w== X-Gm-Message-State: AOAM530uQ3aRMj34VPy4ish39Ow0QW7dSD293V+63lh8OmkiOH6LCM6a M1RfbpwtWJuhGlgr5sgpUt7GMdK465FD8w9vV+NXY9Pp X-Received: by 2002:ac2:47ed:: with SMTP id b13mr47703923lfp.21.1594501800249; Sat, 11 Jul 2020 14:10:00 -0700 (PDT) MIME-Version: 1.0 References: <20200703011830.15655-1-mark.tomlinson@alliedtelesis.co.nz> In-Reply-To: <20200703011830.15655-1-mark.tomlinson@alliedtelesis.co.nz> From: Linus Walleij Date: Sat, 11 Jul 2020 23:09:49 +0200 Message-ID: Subject: Re: [PATCH v2] pinctrl: nsp: Set irq handler based on trig type To: Mark Tomlinson Cc: Ray Jui , bcm-kernel-feedback-list , "open list:GPIO SUBSYSTEM" , Scott Branden , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 3, 2020 at 3:18 AM Mark Tomlinson wrote: > Rather than always using handle_simple_irq() as the gpio_irq_chip > handler, set a more appropriate handler based on the IRQ trigger type > requested. This is important for level triggered interrupts which need > to be masked during handling. Also, fix the interrupt acknowledge so > that it clears only one interrupt instead of all interrupts which are > currently active. Finally there is no need to clear the interrupt during > the interrupt handler, since the edge-triggered handler will do that for > us. > > Signed-off-by: Mark Tomlinson > --- > Changes in v2: > - Don't perform unnecessary acks. Patch applied. Yours, Linus Walleij