Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2047845pxu; Tue, 24 Nov 2020 15:49:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbczWlJj9aYDuwZJIu643O/oE2S4x/ToL9qTkA12TTxjpu1X4Kr3EZBXSXihW96G9CHvJS X-Received: by 2002:a17:906:3953:: with SMTP id g19mr776404eje.151.1606261747637; Tue, 24 Nov 2020 15:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606261747; cv=none; d=google.com; s=arc-20160816; b=U8sjlqr3yP3dSEKeKzfhe5PsmFWRNs9J5WEiy0AgQyfoXgSCEPNxjzuHGGkxgcjAwX vQkE78qLeD265PYroBHtZoxme+WBens5XrZeHS45Ag5ZmSiU4UseV7xQw+hH+ty5/iWq t75HjhPzaZIBB+mEuLbYWsvCbJcSsGmZhIboxGj4tMuO1ZsICtwI2YCU9RkQXfqgTBMm ovfChKIdLli+Ha36mahXJilghe5cDqFMI93FKVjQwe0rzlexW2QgpDSVLaDp+KrTtiLZ v6hGeXPVk0ALl+l7onqvLgphjxWEKp7BD0/iNyjQTxZevlNLlAb7Q5oXIx6yA2rqmlRY QU9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=LDLGWnftuNhuhwXEbFu9jSpsqBYMscUfjOPnE77S6l8=; b=s75JEqFOwvrWMcx2QmC5Fj00V0CBFn+ipJQozmLAsc6UMKKbIHVT6WQzzis7b08cNU zHVNDYwcdlaUgzdPQmwtzfnGIZAvAYCbcfHx7qGrzQiA8WLepLfv07SmXH+vfWsN2/qN gfYLMD06G707f+toUSFk+5q3OgtsAGDOcD59c3InKtg8jV10EstQjua0uI9OroL8DdvE t+YZSL9OJEFzyQNgP/gt5gv1c7CHEnGIVGrY0kmu4nxWKNHenceNG4DTFdp/gEDcU4xb YMHQkTSq69tZL8hBWAeyjOUOV1QEY7a7w+qK9Ag9tPsgXdfX2j0bZISlJ1FyeDH1LTSe ikOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=eLC6mgDb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ca28si166264edb.409.2020.11.24.15.48.44; Tue, 24 Nov 2020 15:49:07 -0800 (PST) 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=@mg.codeaurora.org header.s=smtp header.b=eLC6mgDb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390626AbgKXRm3 (ORCPT + 99 others); Tue, 24 Nov 2020 12:42:29 -0500 Received: from z5.mailgun.us ([104.130.96.5]:32028 "EHLO z5.mailgun.us" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728945AbgKXRm3 (ORCPT ); Tue, 24 Nov 2020 12:42:29 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1606239749; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=LDLGWnftuNhuhwXEbFu9jSpsqBYMscUfjOPnE77S6l8=; b=eLC6mgDb/0C+6DUXWFzQxztkeaEeeUNwraf+ywIhKV5mSS/hLNh0ayqDUsU0owdLVAsB8KEQ RHyru7IzN0BjeuXuX6gof02Yeb7JXr8ATp31nXEFgsIFvI4o7nXYcm4xhD8kmrV8mHBmCb1L G7r7J4QNBrR9/y277jY+QYY1zZ4= X-Mailgun-Sending-Ip: 104.130.96.5 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n07.prod.us-east-1.postgun.com with SMTP id 5fbd45f5d64ea0b703a92ae6 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 24 Nov 2020 17:42:13 GMT Sender: mkshah=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id DF9DAC433C6; Tue, 24 Nov 2020 17:42:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.29.129] (unknown [49.36.77.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id 843C7C433ED; Tue, 24 Nov 2020 17:42:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 843C7C433ED Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=mkshah@codeaurora.org Subject: Re: [PATCH 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling To: Doug Anderson , Linus Walleij Cc: Marc Zyngier , Thomas Gleixner , Jason Cooper , Srinivas Ramana , Neeraj Upadhyay , Rajendra Nayak , "open list:GPIO SUBSYSTEM" , MSM , Bjorn Andersson , Stephen Boyd , Andy Gross , "linux-kernel@vger.kernel.org" References: <20201123160139.1.I2702919afc253e2a451bebc3b701b462b2d22344@changeid> From: Maulik Shah Message-ID: <603c691f-3614-d87b-075a-0889e9ffc453@codeaurora.org> Date: Tue, 24 Nov 2020 23:12:04 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, + * When we change types the PDC can give a phantom interrupt. + * Clear it. Specifically the phantom shows up if a line is already + * high and we change to rising or if a line is already low and we + * change to falling but let's be consistent and clear it always. + * Can you please hold this change. I am checking with HW folks if above commented behaviour is expected/is valid case to set the irq type rising edge when the line is already high. Will keep posting update here. Thanks, Maulik On 11/24/2020 10:25 PM, Doug Anderson wrote: > Hi, > > On Tue, Nov 24, 2020 at 12:28 AM Linus Walleij wrote: >> On Tue, Nov 24, 2020 at 1:02 AM Douglas Anderson wrote: >> >>> We have a problem if we use gpio-keys and configure wakeups such that >>> we only want one edge to wake us up. AKA: >>> wakeup-event-action = ; >>> wakeup-source; >> I would need Marc's ACK to apply this with the other patches >> to the pinctrl tree, but I can't really see if maybe it is OK to >> apply it separately? > I'll make an explicit note after the cut in the patch, but to also > respond here: we can apply this patch on its own. The only reason I > sent as one series is because they address similar issues, this patch > stands on its own. Patch #3 needs #2 but patch #2/#3 don't need patch > #1. > >> Also are these patches supposed to all go in as fixes or >> for v5.11? > Wherever it makes sense. > > -Doug -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation