Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6547558imm; Mon, 27 Aug 2018 18:46:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbElD0TV3/6OfEIbvzADW/4ynemaRS4WsDwXGiQ6laI7nlps/1T3RXGFVQLzLvBiBr1ZQg6 X-Received: by 2002:a63:a54f:: with SMTP id r15-v6mr14373617pgu.336.1535420813759; Mon, 27 Aug 2018 18:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535420813; cv=none; d=google.com; s=arc-20160816; b=ygbQrisfzuP+c/IQMp9EjbQsAhIal2zH1nTbLMZ2vfK+43ez7ziNN+YpvhfLyhm8qr FH06v5kokgckDAJrs3is3quYyzuHcuoHFAb1DcLn3kndkyvAoB4d3W+DCyBJ+wwjs0b0 BWqzoIsDYRtbs8HaNvavXa22N6w8GmefpQolozWsEizfvn4rXTtcJkB/wtLJEb85OfJj +tFhTXq3RxKS+RIVDE2eI0nvGFN9GTVNUn7fSnc5cZnItEXvPuAdg3m8jAoJeel5yL0B n4SkGpqBh+I1T8jbH657UBe4icdj5IK4aAsH1qy7kV9uVyoDzQW4B5U5C49+y8Bw9REg bzxA== 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=1ZI+xviXGTZSzbjyzdN21vdK5VyBjPLJ+oapO15xfgU=; b=WH1OX3ksw7PHF5vQmAGUHAsstd1xPsXB1O1N0+7P9slY6KIWxQtlqrPyEyJAa1r17O xPQwAPfUTW9m8348VtA98JG5GZPUhA2lG0egVDvj7KprIAAonRakOWf+n9d2yPY5sCOI FEd/zr/ts9sX+CGncL7JIFGuk4tij2DH9oGf7fS4shxpkpNtPsZ8Fc9C+dgZeTPdCMmh AqyBnf/R8WxoNpz//7E0R63a38BzPr7vhDTfHmk/rI38StHQCDGpaMtD23a+GWiNI2T5 MrfQckWnS9Ho4dRROhNvfuLSGv3VezaR/+2VIi/pnu+M8qHIwHnRzpxlywiwZwOAzj4o uNew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=X1WdQwXP; dkim=pass header.i=@codeaurora.org header.s=default header.b=X1WdQwXP; 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 b19-v6si963362pfb.89.2018.08.27.18.46.27; Mon, 27 Aug 2018 18:46:53 -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=X1WdQwXP; dkim=pass header.i=@codeaurora.org header.s=default header.b=X1WdQwXP; 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 S1726806AbeH1Fds (ORCPT + 99 others); Tue, 28 Aug 2018 01:33:48 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:36350 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725724AbeH1Fds (ORCPT ); Tue, 28 Aug 2018 01:33:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E0834603D2; Tue, 28 Aug 2018 01:44:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535420674; bh=zqsUWxBk7XGF9CuJIa05VdIxroF7PWkerwuMmg+MHS0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X1WdQwXPaDmyujdZgVE+/MxV363oKp0xhpBnCPJl/jb1RqmpE3+sGpDfUBvwlwxxE p+ChTl0dW6aQMMZjB87zNvErcIPUMBwnD/GLK7ZKKeeomPZ0eC1SXwOysedmX7aMSZ Qx0SuuWWAZlaVZIiaqoa3hlEUgW3DIoAwJkUxJOY= 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 EBCEF60117; Tue, 28 Aug 2018 01:44:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1535420674; bh=zqsUWxBk7XGF9CuJIa05VdIxroF7PWkerwuMmg+MHS0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X1WdQwXPaDmyujdZgVE+/MxV363oKp0xhpBnCPJl/jb1RqmpE3+sGpDfUBvwlwxxE p+ChTl0dW6aQMMZjB87zNvErcIPUMBwnD/GLK7ZKKeeomPZ0eC1SXwOysedmX7aMSZ Qx0SuuWWAZlaVZIiaqoa3hlEUgW3DIoAwJkUxJOY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EBCEF60117 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: Mon, 27 Aug 2018 19:44:33 -0600 From: Lina Iyer To: Bjorn Andersson Cc: marc.zyngier@arm.com, sboyd@kernel.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, andy.gross@linaro.org, dianders@chromium.org Subject: Re: [PATCH v2 4/5] drivers: pinctrl: qcom: sdm845: support GPIO wakeup from suspend Message-ID: <20180828014433.GA13998@codeaurora.org> References: <20180824200157.9993-1-ilina@codeaurora.org> <20180824200157.9993-5-ilina@codeaurora.org> <20180828003131.GD2523@minitux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20180828003131.GD2523@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 Mon, Aug 27 2018 at 18:31 -0600, Bjorn Andersson wrote: >On Fri 24 Aug 13:01 PDT 2018, Lina Iyer wrote: > >> Enable TLMM IRQs to be sensed by PDC when we enter suspend. It is >> possible that the TLMM may be powered off and not detect GPIOs that are >> configured as wake up interrupts. By hooking into suspend callbacks, we >> allow PDC IRQs to take over and wake up the system if wakeup interrupts >> are triggered. >> >> Signed-off-by: Lina Iyer >> --- >> drivers/pinctrl/qcom/pinctrl-sdm845.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c >> index 2ab7a8885757..cc333b8afb99 100644 >> --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c >> +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c >> @@ -1297,10 +1297,16 @@ static const struct of_device_id sdm845_pinctrl_of_match[] = { >> { }, >> }; >> >> +static const struct dev_pm_ops msm_pinctrl_dev_pm_ops = { >> + SET_LATE_SYSTEM_SLEEP_PM_OPS(msm_pinctrl_suspend_late, >> + msm_pinctrl_resume_late) >> +}; >> + > >I expect these four lines to be duplicated in every platform file, so I >think it would be better to just move it to pinctrl-msm.c and extern >declare it in pinctrl-msm.h. > Sure. >> static struct platform_driver sdm845_pinctrl_driver = { >> .driver = { >> .name = "sdm845-pinctrl", >> .of_match_table = sdm845_pinctrl_of_match, >> + .pm = &msm_pinctrl_dev_pm_ops, >> }, >> .probe = sdm845_pinctrl_probe, >> .remove = msm_pinctrl_remove, > >Regards, >Bjorn