Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6310455imb; Fri, 8 Mar 2019 14:32:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyPSWthMzC2ZEvyAPqIKW4pxRv181tIZGBR85Lp9WniZidLNTswY3sPpr7ORxeiYwD6/UeH X-Received: by 2002:a65:62d6:: with SMTP id m22mr11334278pgv.443.1552084363569; Fri, 08 Mar 2019 14:32:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552084363; cv=none; d=google.com; s=arc-20160816; b=E5K09uM8F1W0GL4y1s+8oWZjVrRFHEkrsQFOu0yPR9WTh0LITk+kI+7vtcpbAiuKnv pjrp8HVnwq1+DIvU8L3Wr9o+pvomYLOjjjvM+RgP0/HnNqopL3kupqUWtP/5sEfkgAyl RQ8c5SU/YLB8vdU5btrM2XzuOjnLr/K+OCWK2KrS0LqdFUJ3qOSCh+MT78SVaXhItH0x Z/MMmGRnWsIs9YXsZYJoi1sr6oVIOVtF6s+MkN/FWec0A5OHLVCJLONhairQpj4//z8I 4xvB+cSBKbrszIcTh2icz36XaSnqeceEf8lIuMqBcerTFJIUnHr8fVHVrelr3Ateb/+U BH4Q== 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; bh=1+YhjwEo9TBWQL0ydcMJVbhRIsClV2IqoTgo2bbxXG8=; b=aTYYrv8tPDp3XZnJTNjoY+B4mCHJm4sQy+AHipfgEQVB2b6v/OgVJhXO1yJGHT7mfC Fx8zGSnzKEhQ2ehDeXZP/YyXD0J4cGV2pM1CjWH2w2gDPIh/114CiQW9NGEfwIk7kOTz 5uI752EGDzdgF1LqX/0raRvRIfnAwClwyRcnbi5N3kLXmAkc9c5ODKrRYK8X9vIg+ACI 8x32fRRP71egzA9KAFleWEgSzCn1xV+nBzE47jW3TD6lWU0n2RhP5Fox9zYuh/NL4u9H ferJ/gTldxkh7g3GVWK/obccnuk2QcA1myc+8X/xum9ShIxaZiP0U6EWuPknZ3DnY9Hp HIHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BrQea9kW; dkim=pass header.i=@codeaurora.org header.s=default header.b=BrQea9kW; 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 w13si7319993pgr.356.2019.03.08.14.32.26; Fri, 08 Mar 2019 14:32:43 -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=@codeaurora.org header.s=default header.b=BrQea9kW; dkim=pass header.i=@codeaurora.org header.s=default header.b=BrQea9kW; 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 S1726446AbfCHWan (ORCPT + 99 others); Fri, 8 Mar 2019 17:30:43 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:45420 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfCHWam (ORCPT ); Fri, 8 Mar 2019 17:30:42 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C462B604BE; Fri, 8 Mar 2019 22:30:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552084241; bh=7EmFq2bsdSMXunQcC3U97iWThXMttuBUha8q57peoxA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BrQea9kW/npURT5jXhIgROH9uYaTsmd0hyrrqOHQfA2mUGfb0mjHbitUtjRvLwr1o 5+uW7rQb27BV9DgC+1K6FZEgbxJbsmn01O9SwOFhfUcque+d4/bzQG6ftPCnO+3W2B gFbEq85OU3k27smqILat6KQklIxzrNUQdS5uJWzs= 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.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED 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 CFC5F60328; Fri, 8 Mar 2019 22:30:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552084241; bh=7EmFq2bsdSMXunQcC3U97iWThXMttuBUha8q57peoxA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BrQea9kW/npURT5jXhIgROH9uYaTsmd0hyrrqOHQfA2mUGfb0mjHbitUtjRvLwr1o 5+uW7rQb27BV9DgC+1K6FZEgbxJbsmn01O9SwOFhfUcque+d4/bzQG6ftPCnO+3W2B gFbEq85OU3k27smqILat6KQklIxzrNUQdS5uJWzs= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CFC5F60328 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: Fri, 8 Mar 2019 15:30:40 -0700 From: Lina Iyer To: Stephen Boyd Cc: evgreen@chromium.org, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, rplsssn@codeaurora.org, linux-arm-msm@vger.kernel.org, thierry.reding@gmail.com, bjorn.andersson@linaro.org, dianders@chromium.org, linus.walleij@linaro.org Subject: Re: [PATCH v3 6/9] drivers: pinctrl: msm: setup GPIO irqchip hierarchy Message-ID: <20190308223040.GA31960@codeaurora.org> References: <20190222221850.26939-1-ilina@codeaurora.org> <20190222221850.26939-7-ilina@codeaurora.org> <155200677430.20095.14337964669558394653@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <155200677430.20095.14337964669558394653@swboyd.mtv.corp.google.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 07 2019 at 17:59 -0700, Stephen Boyd wrote: >Quoting Lina Iyer (2019-02-22 14:18:47) >> diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c >> index ee8119879c4c..83053b45982e 100644 >> --- a/drivers/pinctrl/qcom/pinctrl-msm.c >> +++ b/drivers/pinctrl/qcom/pinctrl-msm.c >> @@ -890,6 +918,9 @@ static int msm_gpio_irq_set_wake(struct irq_data *d, unsigned int on) >> >> raw_spin_unlock_irqrestore(&pctrl->lock, flags); > >Can we remove the above hunk of code in this function? From what I can >tell we're trying to set wake on the GIC SPI line and that won't ever >work because it doesn't support wakeup support. Furthermore, I get a >lockdep splat when I try to set wake on a GPIO irq with this patchset >applied. It's probably a false positive though because it's warning >about an AA deadlock with the irq descriptor lock, which is aliased >between the two controllers. > >> >> + if (d->parent_data) >> + irq_chip_set_wake_parent(d, on); >> + >> return 0; >> } >> > >Here's a patch on top. If you need my signed-off-by please feel free to >add it: > I will fold it in in my patch. It has your Co-developed-by anyways. Thanks, Lina >Signed-off-by: Stephen Boyd > >-----8<------- >diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c >index cdbc06ec5e96..4e81dad80a4d 100644 >--- a/drivers/pinctrl/qcom/pinctrl-msm.c >+++ b/drivers/pinctrl/qcom/pinctrl-msm.c >@@ -852,20 +852,10 @@ static int msm_gpio_irq_set_type(struct irq_data *d, unsigned int type) > > static int msm_gpio_irq_set_wake(struct irq_data *d, unsigned int on) > { >- struct gpio_chip *gc = irq_data_get_irq_chip_data(d); >- struct msm_pinctrl *pctrl = gpiochip_get_data(gc); >- unsigned long flags; >- >- raw_spin_lock_irqsave(&pctrl->lock, flags); >- >- irq_set_irq_wake(pctrl->irq, on); >- >- raw_spin_unlock_irqrestore(&pctrl->lock, flags); >- > if (d->parent_data) >- irq_chip_set_wake_parent(d, on); >+ return irq_chip_set_wake_parent(d, on); > >- return 0; >+ return -ENOSYS; > } > > static int msm_gpio_irq_reqres(struct irq_data *d)