Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1562491imm; Wed, 1 Aug 2018 19:12:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfNyHPvT5TUCvP8/ceTdeSF2jSeT9tZ/NcUsmRUwMO7ctVaEQa7tUwOOt9DTqF8k4NPeYCU X-Received: by 2002:a62:4808:: with SMTP id v8-v6mr841105pfa.89.1533175931534; Wed, 01 Aug 2018 19:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533175931; cv=none; d=google.com; s=arc-20160816; b=mm/1qLYsJGdh5LTeMZnNTJSJMDT+KgdQNnCPlZ3Qxa5nc1wBdcI5MqSVhAAKJN8WHz TAqHxiPjMQ/XkjIJnBkLMm1XQWdON9mA/ENicKM2PEXvSMbXg7CyxUNSDjAtcgTs1Q0T 5dCijFYsfovsqe0hYOgWQuvM95NLy8ZgjA/58YjTC2YE6X9OkNa8jI+NSGsp0sUiEziA x76PUVynO0owYyxkbN+3lIdYzLoNiyuC0kAyliwMg0GlLmGs3JaVoydjeEG1BCYLyofj qqe8Sbxu+jo+KIkwAmSg9AXYS8Zc0gDt2EcTwAILThpcqCDpwY0B3Rgbka+27nab0dfF xeoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=dRla8oLLe98xYL+OLyHjH5Omuisr/paH8ZsFcIFXv9A=; b=bKogCdVpCcMhYQg52Syk/YDL4pZy7ZXEe/j61vnrJFPsN2DRKk/eCnVi7QNS1zD4Xv 3koFbMxNbKM4/diOrkT/uBITEks4wcR4xCfoNb1XrdwLvqcq/WpkY6R2RxH99iky/dZp akQhGS7AE5YoLnMV6RnACTIenfIHCACl8pAtK1zZW1VV1cJVfrxoypUUoOBzx/It9cis 8lwgIXdPetmtBOO8HjYLx9FvrM1VaqzUzcuY5QybZap6xDsVpLd61q8Xb/m8G6PE4lXB 2mtHAMtxrGxAUIiZNAhBG9+lD/3ZV8GEHeoQieFpp3/Aoop3tBhz0whk3wz92o1dGmmj GKUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KzH0Cjkt; dkim=pass header.i=@codeaurora.org header.s=default header.b=pFRUt46m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si664533pgk.468.2018.08.01.19.11.56; Wed, 01 Aug 2018 19:12:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=KzH0Cjkt; dkim=pass header.i=@codeaurora.org header.s=default header.b=pFRUt46m; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732119AbeHBD7p (ORCPT + 99 others); Wed, 1 Aug 2018 23:59:45 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:45654 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729653AbeHBD7p (ORCPT ); Wed, 1 Aug 2018 23:59:45 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4C3ED6079C; Thu, 2 Aug 2018 02:10:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533175859; bh=dRla8oLLe98xYL+OLyHjH5Omuisr/paH8ZsFcIFXv9A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KzH0CjktPR1TAJhbByCDcJg6BzpIKwxt9rkm8oHzUrK9hEga+I1UF0JWjbUaOChWk DYxpBG150fYUnp4RZa1PBFVHjMdv+lh+jn17ZZ4GI7eCfp0+qF244oIVcuMqB4n6bf M5kPnZ47DsFib/9EH7zEYNGIOeJ2e+/atXfHis5U= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6273560275; Thu, 2 Aug 2018 02:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1533175858; bh=dRla8oLLe98xYL+OLyHjH5Omuisr/paH8ZsFcIFXv9A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pFRUt46mxp8eZwqyB1szbG9+3gA8psD6+hZE36o9EAdLEc/ub3HX/CthI/jjZ5DWt r8KPFyHLs+2EcG+fGLtBMrJ4/DFGE8yJhCTGS1ZmBHFO++KPPUOulxzeTauaWTumJg sM9wbNwBP42ZJul0wZmJx7YTjcdQrnh9avKv9BX8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6273560275 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Wed, 1 Aug 2018 20:10:57 -0600 From: Lina Iyer To: Bjorn Andersson Cc: Marc Zyngier , swboyd@chromium.org, evgreen@chromium.org, linus.walleij@linaro.org, rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org Subject: Re: [PATCH RESEND RFC 1/4] drivers: pinctrl: qcom: add wakeup capability to GPIO Message-ID: <20180802021057.GC6422@codeaurora.org> References: <20180801020021.9782-1-ilina@codeaurora.org> <20180801020021.9782-2-ilina@codeaurora.org> <86600uy4vh.wl-marc.zyngier@arm.com> <20180801194538.GA6422@codeaurora.org> <20180801223635.GO30024@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180801223635.GO30024@minitux> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 01 2018 at 16:38 -0600, Bjorn Andersson wrote: >On Wed 01 Aug 12:45 PDT 2018, Lina Iyer wrote: > >> Thanks for the feedback, Marc. >> >> On Wed, Aug 01 2018 at 00:31 -0600, Marc Zyngier wrote: >> > On Wed, 01 Aug 2018 03:00:18 +0100, >> > Lina Iyer wrote: >[..] >> > Why isn't that the case? And if that's because the HW is broken and >> > doesn't buffer edge interrupts, why can't you use the resend mechanism >> > instead? >> > >> The PDC hardware can replay the interrupts accurately. However, it will >> replay only the pin and its not the TLMM summary IRQ. The handler here, >> needs to notify the driver that the wakeup interrupt happened and needs >> to take action. If I could trip the summary IRQ in this handler that >> would work too. Can it be done? >> > >Does this means that the intr_status_reg will not hold the information >about the interrupt events that occurred before we powered on the TLMM >again? Or is the problem limited to it not triggering the TLMM IRQ? > It doesn't. The TLMM is in low power state and cannot sense interrupts. >Can the PDC (and MPM) be used in the non-sleep use cases as well? > Yes. We use PDC to modify polarity of falling edge and low level interrupts to rising edge and high level interrupt so they may be sensed at the GIC. I am not sure about the MPM. I suspect it is not. -- Lina