Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp291816ybl; Tue, 10 Dec 2019 23:09:56 -0800 (PST) X-Google-Smtp-Source: APXvYqztwDHcvWSNMVHACrzBw2WMSB+Hs/ZaXAIUroWhVtTpCl2GX8CzNLpH5vyNGamxe8iU3ODG X-Received: by 2002:aca:815:: with SMTP id 21mr1722863oii.52.1576048195830; Tue, 10 Dec 2019 23:09:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576048195; cv=none; d=google.com; s=arc-20160816; b=VaiOP77YzmWm5qzStiAVSE3Og8pSuqUmbmpDulweDy7aVMOEJLNVac620xXeIW+vOH WI5mAdVurr7sIyLhwzg99zcKj3NMn4PNufgtYcYQxrcYd2PtgckcpDDWETkj+p7Ixamr F1y1BpSpRCiBMynZYeha1cl5mKK7T+3EkNjwA2+XQNnEFKLFZpxSpTsMkt+R+Vm7x1c0 liEsHmf4Yg6bEKZ4f3JsQaM2wQOydj45HdUlvRvjVbgEPUOaMka+1iYPac6+ZFDNryNx ELAuxFfHkGK9jhdos3AcxNzbXhk9M2bvDUz5BqhvW8yG0q8RZ7EsrZh8WkBHh6cqi6xN gvFQ== 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; bh=Mw1m7ZX6r1K+ymHABV5ItgLTm+mVsRBoTGueokW36qI=; b=ZInsHOg/zBK5dQ5+wKnf11IJYAnNGvBpdNc++x2BC2/waMsqW6JspCcU07xoDY4P2L XZWekDGcLDRO1pm9BvYOh9FBcnazUpbubSYanNsWAqk1NE47YijYbKeio+tV6LI+hPvV MwhiYzIo2cUBAYfu3Oii+R1fwdUrSvO8c4P+2CC3m7SUj3iexxQcVz7cHP3O/dXWdVdw QUtMAj1dd6MqiWjo/vDkMNZBDzWil5iOhncVESr3FyHiMxDgd6QQOi/qN2ruUMn28jf5 YiyHi7FOeFLYWBARLb0vFtwTOLQU9jIGJpsKIZ8XQXNeIswqO+zj+qvtJwvSH76Kb4FV VZMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rMAPs3R+; 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 i124si591603oif.214.2019.12.10.23.09.44; Tue, 10 Dec 2019 23:09:55 -0800 (PST) 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=rMAPs3R+; 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 S1726487AbfLKHJM (ORCPT + 99 others); Wed, 11 Dec 2019 02:09:12 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:34837 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725800AbfLKHJM (ORCPT ); Wed, 11 Dec 2019 02:09:12 -0500 Received: by mail-pl1-f196.google.com with SMTP id s10so1052596plp.2 for ; Tue, 10 Dec 2019 23:09:12 -0800 (PST) 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=Mw1m7ZX6r1K+ymHABV5ItgLTm+mVsRBoTGueokW36qI=; b=rMAPs3R+esIjZdpo1ueKrYQgBgvGLiaqfirFkDuGPFWYiCfByGGNwnZUnQWgLPFMc8 vukk1lfwIQaBOKsmvnunKBl9JKPpD+M0eAeD+VGnRiJ+4FAnQ1zqv+V/9pQ16qCm/VIC oc2lAMaLORTO9zNuIFhWLae5Bw/hVsFjbhkbqPVPV6BRb1yoDZrcdtkdhN363XazOI8k jpZgHxXNYUpb7gDR40Ck7+XdAAuMOEBiD4FztiC3jVmHtBiz7z/abxY+/+piYKN62VK+ IKe77mGxcPuq/upvhQNpVamGZMsBYODTv8+jiKoV8jFc5pgrlhN4pyG5Rxxiw3T66nOd 4n4A== 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=Mw1m7ZX6r1K+ymHABV5ItgLTm+mVsRBoTGueokW36qI=; b=VFE8WrYylyXQ7LmvC4mzoOj+LXDI3DCydhovTpK8qYFzVdjVJTNtbdW5TwNVtgXJ25 DNfI9VTjloxDSWaiWMA+1CzTuNM4DX5KD3QYnemMTiE4GK51K/NJvuxzRCvXSqDj/cjO V8Q2ZdxCuGDFZ0LjDHyxCBeAJCJBbTwHzxdTec63I6DmtmUPki4CqJ9Uow8MRzaVRDLB 2ZNRsCMLOVpsEKKc4tURGStEUjieXEmuJDHOmvQpKhQXAOhDN+Sfbicus2JNAYp/9Tw0 AWKfyd5dV9fO2eKWNfqezXrMHVGf7m0sGyaTQcDY/P0ZFKbttiQvfOVxxjqvPbPkGIAJ Cqyg== X-Gm-Message-State: APjAAAUJbJKrxvLis1YKcIArr/bc7vGjccurMEsZPYv57cpJ1mubulcE H45Li9prQLc98ZKHNczAvlHwjA== X-Received: by 2002:a17:90b:150:: with SMTP id em16mr1796042pjb.123.1576048151628; Tue, 10 Dec 2019 23:09:11 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id o7sm1577093pfg.138.2019.12.10.23.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 23:09:10 -0800 (PST) Date: Tue, 10 Dec 2019 23:09:08 -0800 From: Bjorn Andersson To: Maulik Shah Cc: agross@kernel.org, robh+dt@kernel.org, linus.walleij@linaro.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, mka@chromium.org, swboyd@chromium.org, evgreen@chromium.org, dianders@chromium.org Subject: Re: [PATCH 1/2] pinctrl: qcom: sc7180: Add GPIO wakeup interrupt map Message-ID: <20191211070908.GG3143381@builder> References: <1572419178-5750-1-git-send-email-mkshah@codeaurora.org> <1572419178-5750-2-git-send-email-mkshah@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1572419178-5750-2-git-send-email-mkshah@codeaurora.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 30 Oct 00:06 PDT 2019, Maulik Shah wrote: > GPIOs that can be configured as wakeup sources, have their > interrupt lines routed to PDC interrupt controller. > > Provide the interrupt map of the GPIO to its wakeup capable > interrupt parent. > > Signed-off-by: Maulik Shah Acked-by: Bjorn Andersson @Linus, please take this patch through your tree and I'll take patch 2 through the arm tree. Regards, Bjorn > --- > drivers/pinctrl/qcom/pinctrl-sc7180.c | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/drivers/pinctrl/qcom/pinctrl-sc7180.c b/drivers/pinctrl/qcom/pinctrl-sc7180.c > index 6399c8a..8a2b97c 100644 > --- a/drivers/pinctrl/qcom/pinctrl-sc7180.c > +++ b/drivers/pinctrl/qcom/pinctrl-sc7180.c > @@ -1097,6 +1097,22 @@ static const struct msm_pingroup sc7180_groups[] = { > [126] = SDC_QDSD_PINGROUP(sdc2_data, 0x97b000, 9, 0), > }; > > +static const struct msm_gpio_wakeirq_map sc7180_pdc_map[] = { > + {0, 40}, {3, 50}, {4, 42}, {5, 70}, {6, 41}, {9, 35}, > + {10, 80}, {11, 51}, {16, 20}, {21, 55}, {22, 90}, {23, 21}, > + {24, 61}, {26, 52}, {28, 36}, {30, 100}, {31, 33}, {32, 81}, > + {33, 62}, {34, 43}, {36, 91}, {37, 53}, {38, 63}, {39, 72}, > + {41, 101}, {42, 7}, {43, 34}, {45, 73}, {47, 82}, {49, 17}, > + {52, 109}, {53, 102}, {55, 92}, {56, 56}, {57, 57}, {58, 83}, > + {59, 37}, {62, 110}, {63, 111}, {64, 74}, {65, 44}, {66, 93}, > + {67, 58}, {68, 112}, {69, 32}, {70, 54}, {72, 59}, {73, 64}, > + {74, 71}, {78, 31}, {82, 30}, {85, 103}, {86, 38}, {87, 39}, > + {88, 45}, {89, 46}, {90, 47}, {91, 48}, {92, 60}, {93, 49}, > + {94, 84}, {95, 94}, {98, 65}, {101, 66}, {104, 67}, {109, 104}, > + {110, 68}, {113, 69}, {114, 113}, {115, 108}, {116, 121}, > + {117, 114}, {118, 119}, > +}; > + > static const struct msm_pinctrl_soc_data sc7180_pinctrl = { > .pins = sc7180_pins, > .npins = ARRAY_SIZE(sc7180_pins), > @@ -1107,6 +1123,8 @@ static const struct msm_pinctrl_soc_data sc7180_pinctrl = { > .ngpios = 120, > .tiles = sc7180_tiles, > .ntiles = ARRAY_SIZE(sc7180_tiles), > + .wakeirq_map = sc7180_pdc_map, > + .nwakeirq_map = ARRAY_SIZE(sc7180_pdc_map), > }; > > static int sc7180_pinctrl_probe(struct platform_device *pdev) > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >