Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1413466rdb; Wed, 20 Sep 2023 08:27:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFVjwkfVPlX0JQNdf045QVA/iOwlgfDWl0e1smQKaDPnOxgLNkhaTMMzDWPsVauWZhPC3Xq X-Received: by 2002:a05:6358:93a2:b0:142:f320:e0bc with SMTP id h34-20020a05635893a200b00142f320e0bcmr3076937rwb.11.1695223669577; Wed, 20 Sep 2023 08:27:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695223669; cv=none; d=google.com; s=arc-20160816; b=iPQUwerSOHtZ+stFaRGLzDj+tgwTbafnUlVhjdCbIKL6miwohB7YEVllBZym3/2gqx Ygy4+zFhG4UzcFREvajhtCQQbjEMoW+gVkyq1ESMLBJO5Wa/iNudV2jzz+o8rAt/wLM/ GJ0dDdvs1EU2XhqH4/M7Ggw8xDaP9XqMN9uDoBQdrfJzURF+C8Qe5mzlto4LXhEMD6tG H/ePZAocR99fAYrcgT2GiA6s4PDUWrgGUl7VqEe4mSFui76XTvFkuPOjNSEX0w4kjUnS BwRsYS+8o5ckwKlXBWBisYu3ulgoX+WBc6PU2vXyhe5v6RYDfbdVzDLMrKTAzUj+Rx+o vZBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=icfLG5H8eTi62n974zbQOBumyTDPxZ0tIkv/dGGuSnE=; fh=bJBUUdgKYSI9DaiUn9XeAzTS8nyfxycEUXDZQeRqV4A=; b=bAn0u9QcmaH3SVcIkTt1LgpSL/J75H+s6fzkKv9t+uM4GLIxhTlgUr9GvVO6ZJc/29 4rQoiFCyQBeoR2bkaOx3Of305+QdwmHs8WucgIJri3CdHhqb0f7CtwIt5MJlDoBX8aGN GDoO+jV3wcboRu/2rNCziwNOKuIGkGRDf+USTDraeu1ov45mCQdwVYavtPZtSw+v7rf2 KEJgiStKlFCoZsZsU+RitmRx8kvL0g0jCvbwHWi7hObU89AR+RA7KeTGkcOeP3DU4K7a Q7n//FBrGjJID9Mx1BIBR/c9zoQbBCXwDm9k6JvBnryC8Of4h/7N6c95FfafaakkV9Gf nVqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NWJetOD6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id b29-20020a63931d000000b005774d2f4abasi11929747pge.876.2023.09.20.08.27.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:27:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NWJetOD6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 60B39806B050; Wed, 20 Sep 2023 05:20:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235730AbjITMUq (ORCPT + 99 others); Wed, 20 Sep 2023 08:20:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235662AbjITMUo (ORCPT ); Wed, 20 Sep 2023 08:20:44 -0400 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CAB0C2 for ; Wed, 20 Sep 2023 05:20:38 -0700 (PDT) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-579de633419so65887267b3.3 for ; Wed, 20 Sep 2023 05:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695212437; x=1695817237; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=icfLG5H8eTi62n974zbQOBumyTDPxZ0tIkv/dGGuSnE=; b=NWJetOD6hieXDwyYe4VUv7gKfrLQIL4WXFB+NXT8qAlQZ1WPYI2R2jryP5+jL2XXc9 NXubIwF6zGnBxXhtBrM+YDU2/zp2DwhVNH0nn+s3R9yXEAZ9XdNCucvQBklnxTsvvtWi hTiJU4DyaVyXEuBwfDoQsLlcOaC+ZoyZsyPMUSJNMMF+gp7ekwl2zAHvPPKmxSp+LbkB SNI53UWNNMmY9aXg0BLYA+JwEzB9XGqQNIpmtyQyhQI66j59F1J8bRdSU5yqev+BZ2qX B8C3WuDEhyWIzrfmJrMQyyNg3YT7h8ITo4GbetK07nKfSeUgGiKt+aKHouzBqWE9sihx nIJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695212437; x=1695817237; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=icfLG5H8eTi62n974zbQOBumyTDPxZ0tIkv/dGGuSnE=; b=izAAi9L/Ro1Mm3EWughg8fTewaaXI3al5oo7GT/uFHqOcedr254qDv0TF7Pd3v8BQ/ xtp8/tRLjb0+3c54Ew62w773oUHE9PHx2kvFdTFbD6WqlL1z7KoFrue0ndxbeyoxjovr Z6wQWxxG+bTzqnFHcVV1Aryuvzt6ghxNJNF/kVv7VKa90F2r2zHm3cXdC9LKHgmeVsMS B6v44MdJXx6IsXknhyc7QEP1wPbCfjrce1z6R9hpAmH0vZKAwhw7pm7Ha3n2DHMZQEHG sGUuoHeRHmCj41+eX+WOIdqQ6MnHI69ZJmbuFXB3mQt2T4bN/ZCJCtUiguaY1dkgD89F RKVA== X-Gm-Message-State: AOJu0Yy+73nKxcVQP4B5e9UZyfajVHYgC9BlMO8aFkJdTv+VYc8PuXS0 D1a0K9FFXzXXHHKltUPn40s3c3qHgDZxOkDOs2Muwg== X-Received: by 2002:a81:6dc7:0:b0:577:3eaa:8d97 with SMTP id i190-20020a816dc7000000b005773eaa8d97mr2486266ywc.17.1695212437107; Wed, 20 Sep 2023 05:20:37 -0700 (PDT) MIME-Version: 1.0 References: <20230918123355.262115-1-biju.das.jz@bp.renesas.com> <20230918123355.262115-3-biju.das.jz@bp.renesas.com> In-Reply-To: <20230918123355.262115-3-biju.das.jz@bp.renesas.com> From: Linus Walleij Date: Wed, 20 Sep 2023 14:20:26 +0200 Message-ID: Subject: Re: [PATCH 2/2] pinctrl: renesas: rzg2l: Enable noise filter for GPIO interrupt input To: Biju Das Cc: Geert Uytterhoeven , Claudiu Beznea , Lad Prabhakar , Marc Zyngier , linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, Biju Das Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 05:20:45 -0700 (PDT) On Mon, Sep 18, 2023 at 2:34=E2=80=AFPM Biju Das wrote: > As per RZ/G2L hardware manual Rev.1.30 section 8.7.3 GPIO Interrupt (TINT= ) > and 41.4.1 Operation for GPIO function, we need to set digital noise > filter for GPIO interrupt. > > This patch enables noise filter for GPIO interrupt in > rzg2l_gpio_irq_enable() and disable it in rzg2l_gpio_irq_disable(). > > Fixes: db2e5f21a48e ("pinctrl: renesas: pinctrl-rzg2l: Add IRQ domain to = handle GPIO interrupt") > Signed-off-by: Biju Das > Tested-by: Claudiu Beznea Why is this called "digital noise filter" when the rest of the world calls it "debounce"? It is a bit confusing to have differing terminology in the kernel. (There might be a good reason, such that the noise in question is very different from mechanical button bounce noise.) Is this only applicable to interrupt lines or also to GPIO lines in general? Because I just want to ascertain that in that case the existing binding for @PIN_CONFIG_INPUT_DEBOUNCE and the corresponding backend call from gpio_chip() maps to the same feature as well. It seems hard-coded for some pins in the Renesas driver right now but the day you make this configurable from DT please call it debounce, if the usecase is similar. Yours, Linus Walleij