Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2688796pxb; Sun, 24 Apr 2022 23:29:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQWwoQRDCYvtwbgZ1NPiSXd8RMc5bce1LvvcGPgcIPGfSfTOfoJ5prOE7kAWV1D0ePZIbT X-Received: by 2002:a17:907:8693:b0:6f0:1048:19d2 with SMTP id qa19-20020a170907869300b006f0104819d2mr14258164ejc.311.1650868183358; Sun, 24 Apr 2022 23:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650868183; cv=none; d=google.com; s=arc-20160816; b=VHs7GD34pIlvudbZsatoAQQNhaC2dYLy4rTF6EXS/BdZVA//EEmAgBbFT8DELKqG5M vgGKXTpNuIxRuYrIXXpRhZ2hIgGhb9E+ovOKjrtWqn+P9Jene+S60nU8est21MQMf51M ZdHvOMC0NklPggbeoW+VqnlsBaxkTwfOBc6XdF4QRvGLCPFd+IzmnY+uGi+heUc8y/ig L7EvxSyYYUu8x/Sjr29w56exs/8QVAdDe4D93+JTaTrH1CDpVaJfos7daJDTlzEYBVlY /2l8uISPiTqDUqlYxj1FPwcnGuostPbwrTiI6kiTDxyXjzEnH8twt8Vg3u7tuTnFzVTo CGtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TMIuF0We9zcIngU+b/yDWhTup1CGDWMUPgiHK4ayFFM=; b=yZ6H0k9PnYfk28MbDYJHWbuMWjQjndnQmQ06q4DosfnGEegTSWvdhSHDapHKr8Q7pw RGkn+bTYnfc6+3G4/qe5DEyAhK/kNvCYTjd/PzzDMSPDZS3VVO13dxFlW6lpmOHhb6q9 ssIVJdr8UZZeLcxBgWsNyBBx3B+BW9/QdGRfD7chDQXfagE6/Uowia37HQchfDcsu9MS 16TAcbyTIUSAyzfvnpSmiua32WO6zqMlKH8+eqaDPsjlUxsY1PwmK5rtPV5+Atg7WE27 9yISx4/IZtqoDfcqkffcW5eRvzcctGwiXrQ+H6BjROaVKaa+mwMaPvuWak+ZPde8Ak7U ZBYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JsKvZlmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hh6-20020a170906a94600b006df76385e53si12438889ejb.755.2022.04.24.23.29.19; Sun, 24 Apr 2022 23:29:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JsKvZlmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240968AbiDYEMG (ORCPT + 99 others); Mon, 25 Apr 2022 00:12:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240952AbiDYELT (ORCPT ); Mon, 25 Apr 2022 00:11:19 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4D2A2B1B9; Sun, 24 Apr 2022 21:07:29 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id d15so24209241pll.10; Sun, 24 Apr 2022 21:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=TMIuF0We9zcIngU+b/yDWhTup1CGDWMUPgiHK4ayFFM=; b=JsKvZlmSjcirO852+grZpjekXVXek3nLbPvO5/IdHb3yKksMgpGAFUz47G9rA2lDro zpdIbgY9LIMNHj1+I3qZOX57eErFMsdznqD3+4qFq508SsCK7a3su+GvM71fzVB+YmgA SFrWzXLYP6UgKfcv0T4vfB+fl4VETU+n1NjWQD9sXu1iKdAFbEuU4iAQe7gmFp5/n2n5 fifl4KH/siwe8YBVav3FZrt2RW2pG1cB+Cu+TvPoARxEnsx+Wsuh+VDiag5IpQD5b0dy 6Aw7RiC/LfwHkwHYycVLBtyYPIqSsHC/7NspM9oMFbWtUhmH8serECmIjRqz47NGlOtD uu5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=TMIuF0We9zcIngU+b/yDWhTup1CGDWMUPgiHK4ayFFM=; b=uA/va8ujhElg/xea5dDrhOqPTlopuDYeys2gSgZvv6UR0v7kNApzFozBk7OidJkWVZ xKN676yYyAKWC2n+qZNNWCbC9+dTaw1QwvqhdCjiQ82p1mVKeAqwrCng12IFvX/nvo3h G6hrjvaQAsrMcv9zvbbGzeVN0rk6UeZfyx0bZYJe1+CGL/judogYbRbU7q/rSdTwewkB tMM4u19xYLb8l2Locb8vnz6A+ah9lJdzlax19m5CfbQJfPTiPFsc1hiyy9DZIylR8SRq QAv0whmlSg9UNP5aCAPnF3+gm7wEb128a1OCaL4WzKqrHZX1ho9IuAz1a/H8z39r4pUT mb4A== X-Gm-Message-State: AOAM533lmgELjbu753LhZ7K7qU+s7LXm4444t6UpBagrNYPJc7fbnoFK InuqLr5t0NQf1tjpwsNh+0Q= X-Received: by 2002:a17:902:b612:b0:158:8455:479e with SMTP id b18-20020a170902b61200b001588455479emr16715776pls.59.1650859649173; Sun, 24 Apr 2022 21:07:29 -0700 (PDT) Received: from google.com ([2620:15c:202:201:282a:d50e:e0fc:c145]) by smtp.gmail.com with ESMTPSA id k15-20020a63ab4f000000b00381eef69bfbsm8083069pgp.3.2022.04.24.21.07.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Apr 2022 21:07:28 -0700 (PDT) Date: Sun, 24 Apr 2022 21:07:25 -0700 From: Dmitry Torokhov To: Anjelique Melendez Cc: corbet@lwn.net, sre@kernel.org, robh+dt@kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, swboyd@chromium.org, linux-doc@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, David Collins Subject: Re: [PATCH v6 4/5] input: misc: pm8941-pwrkey: add software key press debouncing support Message-ID: References: <20220422191239.6271-1-quic_amelende@quicinc.com> <20220422191239.6271-5-quic_amelende@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422191239.6271-5-quic_amelende@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 22, 2022 at 12:12:42PM -0700, Anjelique Melendez wrote: > From: David Collins > > On certain PMICs, an unexpected assertion of KPDPWR_DEB (the > positive logic hardware debounced power key signal) may be seen > during the falling edge of KPDPWR_N (i.e. a power key press) when > it occurs close to the rising edge of SLEEP_CLK. This then > triggers a spurious KPDPWR interrupt. > > Handle this issue by adding software debouncing support to ignore > key events that occur within the hardware debounce delay after the > most recent key release event. > > Signed-off-by: David Collins > Signed-off-by: Anjelique Melendez Applied, thank you. -- Dmitry