Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1408110imm; Wed, 1 Aug 2018 15:39:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpddwenVv1HBe5jXjrzKGanGTqFRCEDZitdMkdLwHetL6fjg7x6CS69dd4+cjJ1bJHIv+f6N X-Received: by 2002:a62:5dd7:: with SMTP id n84-v6mr274645pfj.68.1533163158210; Wed, 01 Aug 2018 15:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533163158; cv=none; d=google.com; s=arc-20160816; b=bRRCeq6KfhWNxaMnpyBKeBmsW3ac5298G5iOnAAqvRdt+JijYyUP6B8KZ/rvOltIi+ WURJwT34D+PP40BqWV/ms7kNkBT6p7oJy/zmALoTQhqboGqexFcZTNVwgw23/kNPmII5 qqrhFKqc6LEuQE+6SXiBY0h9UAQaPshr0hnsj3XOfv7SX8pNIHZQn6mtppAK7/V5mavS GhtRn7qAnlUdZ6/wM/45Vb6g1R6LOn75el7mQmulGITmCm7Gg/OkEB/PmUUsJKFynm67 n26pnZvQ3LitFQKmbm+hLefHKhHfNfraClj66F8nA///tkejMHo6c/BRi7kb2fq6Yzfo JPOg== 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:dkim-signature:arc-authentication-results; bh=aLxw0gq+MkJVxvwPIApQqXsq6eYwQS4XQmZKhO4nyIE=; b=Bx4sVi7VVliuU0rIXf7WeuG+zcVxgiYoZ1ipDwznHttxhiwQd2Hmzl1NY1scBSkBu6 L1r3EAcSyjgSZBECA8wksrWz6c5N24U7X2BTKFUPHMLbJp0Er4Y2Feb8XDfeQOj9ds0L iBJ6xmHivcCYggPZzhufLkvcHXAXOh6HKimypYCDThmncO2QQbDsGGa4H+B9k12EPQ5y ui2bUcfP3WPNFDCYcBJBGOfn/gEGrPmHilpfkIGdKsZ7mJgycNAnQzL6GfqtgZ+qUuJD rv2GnqvRkg/FMNCLtHxMN0j/O1e5J2YvxOw2Y2PQD81cJS44htTBRxnphpgCDiuFbCjG Jk1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=STPiYMdQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o123-v6si210008pgo.190.2018.08.01.15.39.02; Wed, 01 Aug 2018 15:39:18 -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=@linaro.org header.s=google header.b=STPiYMdQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387405AbeHBA0O (ORCPT + 99 others); Wed, 1 Aug 2018 20:26:14 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:39499 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732049AbeHBA0N (ORCPT ); Wed, 1 Aug 2018 20:26:13 -0400 Received: by mail-pf1-f194.google.com with SMTP id j8-v6so117260pff.6 for ; Wed, 01 Aug 2018 15:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=aLxw0gq+MkJVxvwPIApQqXsq6eYwQS4XQmZKhO4nyIE=; b=STPiYMdQX61PzvwchmHE3wrPeM44zdW+Ur4+HaJJbsKTUWLz6BKApnoAeFjIoaEnx1 wJAFo+e2EDkmCkZRCnJzo+2w7jLAS51zXXAOqQc746QethVSO9GPCK5x1JN/StvvrG0g WtJjlVEIGFkr6NFZU5iBi63h0WwTLKjh8m+iw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=aLxw0gq+MkJVxvwPIApQqXsq6eYwQS4XQmZKhO4nyIE=; b=JwMDJfvdhLOAgIDyF1GrzO4/09bY6RKREMW0YhnX+b7yaSIQnMvFGBpTh94FjmN1uR h6YcyvRFwbfbwfvX2sv0cM2xaxlofliRDbnD1jvBItiNOzxrc9H9M1VCzqHikRs3fymU gOwSEVvF7rmYMwBh1wJ/tedxevNjbDNHj0xloY0QD90iHME6qRUlKnGei2X7OcDnfW7Z Z2xUe+EbdkKcezkZsEimHkHnL2jbP94807oIFtHXhRvcx1GdilG2A64Yk26d1HW9mLBs PorGsZ9YMbTTI0S8S/Zp3fzGmyYpGj62NGUn8CZC+IWG3SlA4+F1+1BAxJoH2aRsvKqQ fUOg== X-Gm-Message-State: AOUpUlGarntdL7F5J3lx05TPs7Heo9m0NsJI9ewafTS/hIU3WAcKMQ5J QBaluSshF++sQqj/zyj/kntatQ== X-Received: by 2002:a62:ea05:: with SMTP id t5-v6mr245021pfh.228.1533163091552; Wed, 01 Aug 2018 15:38:11 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 64-v6sm140761pfi.89.2018.08.01.15.38.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 01 Aug 2018 15:38:10 -0700 (PDT) Date: Wed, 1 Aug 2018 15:36:35 -0700 From: Bjorn Andersson To: Lina Iyer 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: <20180801223635.GO30024@minitux> References: <20180801020021.9782-1-ilina@codeaurora.org> <20180801020021.9782-2-ilina@codeaurora.org> <86600uy4vh.wl-marc.zyngier@arm.com> <20180801194538.GA6422@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180801194538.GA6422@codeaurora.org> 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 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? Can the PDC (and MPM) be used in the non-sleep use cases as well? Regards, Bjorn