Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4227511pxa; Mon, 10 Aug 2020 04:23:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyne2mla6/LvwK2D0exBApJd0ZKXzzcVUG+hOcxt+9Kisq1RHrokGXdSgH0fXpgXD/X2Nkw X-Received: by 2002:a05:6402:c84:: with SMTP id cm4mr20273531edb.20.1597058592516; Mon, 10 Aug 2020 04:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597058592; cv=none; d=google.com; s=arc-20160816; b=RRHsGguH7pxrQf5i/84r9wJTZGA6ERPrUjnlJDrPjpJTDgj10uQeET6bmXuXo0BHsn G/7C8yxDl9vQz8DwF/IdNIAQheU3uBgnZOWccu+fZ+dWcYVcFzxDZE9SJAudfZTm1bBn D+kkqO/H7QpDLykwi21TrbMBcXOOx+InYFa+qjAqjS9DPjQoPwNIsMFSzpwkzqLxmCI5 DI5ZSugrEzPCu2ry9gcrSp/ulHVktUanAx+1jfRluQFVJ7r3jGpY/nvmKl3wI0BZ7E2f JBGFxhS6mj+I5xEarDyTml3KeaJTgjQVPz+noThbymXJKMPdn7re8GzEUbU1BP/YITbO G/qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=nSw+Pg8Z1Q0+b6j30X83U/b/ZGs9U90ugvFFeCgAirE=; b=gVP4p0HUIfYWiTprQUug7At75diiKM1lcljI34t8drOzHzXydiwNcrGX08PCzhLI0l w/weE+RRu+a9v1n0bOSDfocxnOXaw21P1s3sIAfJ0RMK6Vaf6EQk1WtoqKf5/bsFaLXf yUSqcZLPah9lk0T41tNAx2mvdRAcc3aevcNGetkzfiFjc3MHf+xZ+W9rXWUsmFLgudNT maEtGCJe7e+L50eGkFqH4cgvKXBqxLmVggelR6/6hCkHFxB25CUD3Wydq07hhw8UR6Gj 2FK9is0IofRE0Co4kErIYtMFLrCkbGgAR5i+lAn0v5P4cVrLK7WzO+BIxBirex2YSTsI ni3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=kpu9cVgw; 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 s15si10384584eji.64.2020.08.10.04.22.49; Mon, 10 Aug 2020 04:23:12 -0700 (PDT) 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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=kpu9cVgw; 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 S1726481AbgHJLWK (ORCPT + 99 others); Mon, 10 Aug 2020 07:22:10 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:34038 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbgHJLVj (ORCPT ); Mon, 10 Aug 2020 07:21:39 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1597058494; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=nSw+Pg8Z1Q0+b6j30X83U/b/ZGs9U90ugvFFeCgAirE=; b=kpu9cVgwVy+3Fyz4tUPzYzwm5C7D1XW4AidurKb5T0Rpp/WlA1vXVgZNTHfdVVGxbudYrzdT bQctTSti9W19UcqSq60sRrTtdq/9aa7bxbHjmPPc3Inr2ek21Gtp9ToGtZRBa/Z9faCQJ4+z ZmcMTEJKo4IphpzTwpT4Y/HFDBc= X-Mailgun-Sending-Ip: 69.72.43.7 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-n05.prod.us-west-2.postgun.com with SMTP id 5f312db81e4d3989d44ee31f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 10 Aug 2020 11:21:28 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E8FE2C433CA; Mon, 10 Aug 2020 11:21:27 +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=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mkshah-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id BC1A4C433A0; Mon, 10 Aug 2020 11:21:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BC1A4C433A0 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=none smtp.mailfrom=mkshah@codeaurora.org From: Maulik Shah To: bjorn.andersson@linaro.org, maz@kernel.org, linus.walleij@linaro.org, swboyd@chromium.org, evgreen@chromium.org, mka@chromium.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, agross@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah Subject: [PATCH v4 2/7] pinctrl: qcom: Use return value from irq_set_wake call Date: Mon, 10 Aug 2020 16:50:55 +0530 Message-Id: <1597058460-16211-3-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597058460-16211-1-git-send-email-mkshah@codeaurora.org> References: <1597058460-16211-1-git-send-email-mkshah@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org msmgpio irqchip is not using return value of irq_set_wake call. Start using it. Fixes: e35a6ae0eb3a ("pinctrl/msm: Setup GPIO chip in hierarchy") Signed-off-by: Maulik Shah Reviewed-by: Douglas Anderson --- drivers/pinctrl/qcom/pinctrl-msm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 90edf61..c264561 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1077,12 +1077,10 @@ static int msm_gpio_irq_set_wake(struct irq_data *d, unsigned int on) * when TLMM is powered on. To allow that, enable the GPIO * summary line to be wakeup capable at GIC. */ - if (d->parent_data) - irq_chip_set_wake_parent(d, on); - - irq_set_irq_wake(pctrl->irq, on); + if (d->parent_data && test_bit(d->hwirq, pctrl->skip_wake_irqs)) + return irq_chip_set_wake_parent(d, on); - return 0; + return irq_set_irq_wake(pctrl->irq, on); } static int msm_gpio_irq_reqres(struct irq_data *d) -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation