Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3114999pxb; Fri, 4 Feb 2022 01:27:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmWss84ZSqTskXijk0IZAyIcK7GRx4e89ji9z7znjl4MAmzhyPTMl5y1y/60q4wEh0tcKS X-Received: by 2002:a05:6402:644:: with SMTP id u4mr2072789edx.316.1643966822738; Fri, 04 Feb 2022 01:27:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643966822; cv=none; d=google.com; s=arc-20160816; b=RPidqQsiMJM9sUdIId4zs249eqVQtxYOlgRtKIb/tVXsIA23fwOJLb3s5NZfDHI96g Ytk6J7mmqrlEAqqpWVFoNEcWo+Z19wSo3xTcoZz/T9DOGqUaxNmrfeGJHdD7I6R3238F hEp03emx/gZgRjsOVQlcIHY3V5b+ezHifCvd4XH68MyWU4UdbdNQ71H8e69Wt3zDTaM1 gmjnbkhb0e6XmeAarXm0IFVtC+K/u23CI4nBnilaWf7If4VbE0t+/VAZR1LaYocI344f +G8mwT310vfjBVznko4Y2e2CYDSQlye5wnYgUckq52p9SZaaiIAwbdXcPPvSfgWBx5aa KVMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=NjOxcV6FjcA6sssPspvL3F/DJ1XcRqKZt9Sxgb5UYUU=; b=dtIx3esNHRXYvrEFMHMUUPT84C7C9p7K+TYnuSZWVSoz6v5nf6f3e1E2oqabvyz9w1 Fs5+X4L5+cicxocObPkQ2JjLk9h0qdYR31SuGuPOCtr3e3sq4GOM9ii6qJmkfA80t4C4 3fMrpCvrvHEsmIQrtvWcbVKsUJlgCxnGhJQBguxNm0YmuKBNgMnc655TaKQvg8zMbrFK +BG2xeQCwks3sozqskPP17ylDQ+uHpDfQLr7C+3tt06zn8MBb5aunwkLbuns6ptLe6Nm hlR2VHJ2eGH2PDu4o4acqrDKPkklZNxUvl6Fy5Sp5FmE+L1NB+ZQp18e0/ijmqLmeW7H d8fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=mf6cLVmv; 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=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j30si878892ejo.933.2022.02.04.01.26.36; Fri, 04 Feb 2022 01:27:02 -0800 (PST) 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=@quicinc.com header.s=qcdkim header.b=mf6cLVmv; 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=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242800AbiBDBVe (ORCPT + 99 others); Thu, 3 Feb 2022 20:21:34 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:40583 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229972AbiBDBVd (ORCPT ); Thu, 3 Feb 2022 20:21:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643937693; x=1675473693; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=NjOxcV6FjcA6sssPspvL3F/DJ1XcRqKZt9Sxgb5UYUU=; b=mf6cLVmv1xOTdBtczwUxIalvmyJXFg0CHfwusjXhWrG1AIdzAAHMWTf9 unWY2Xjjc1uEjNd5R8DoiXlC4dfwa3ZJdizE8DAieZMqMbFQz5TQ55WQ5 vGtC4sgBcfLMSk8Qr8y5Dy0cYcSDASjQBi4sutbMPU8ApCX6P1ZWszDir E=; Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 03 Feb 2022 17:21:33 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2022 17:21:33 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 3 Feb 2022 17:21:32 -0800 Received: from [10.110.74.239] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Thu, 3 Feb 2022 17:21:32 -0800 Message-ID: <92a2ce30-5bdf-d6a0-cb97-f375411eab16@quicinc.com> Date: Thu, 3 Feb 2022 17:21:31 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v3 3/4] input: misc: pm8941-pwrkey: add software key press debouncing support Content-Language: en-US To: Stephen Boyd , CC: , , , , , References: <20220203010804.20883-2-quic_amelende@quicinc.com> <20220203010804.20883-4-quic_amelende@quicinc.com> From: Anjelique Melendez In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/3/2022 1:20 PM, Stephen Boyd wrote: > Quoting Anjelique Melendez (2022-02-02 17:08:07) >> 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 >> --- > > Is there a Fixes tag that should be here? Is it a new problem with newer > PMICs? There is no Fixes tag since this is a workaround for a HW bug. Yes, this is a relatively new problem with the past few PMICs. Starting with PM8450, we need this workaround in pm8941-pwrkey since we are no longer using an older downstream driver that had an equivalent work around.