Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5471746imb; Thu, 7 Mar 2019 17:00:50 -0800 (PST) X-Google-Smtp-Source: APXvYqyLAnxlDUshirt2dl6y/okWEgzeIl4H5AI19U4LbY5BrI4jF8BsO1D/L5DHK6WtHk5p8IeE X-Received: by 2002:a63:e416:: with SMTP id a22mr532103pgi.338.1552006850598; Thu, 07 Mar 2019 17:00:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552006850; cv=none; d=google.com; s=arc-20160816; b=yf3yYQ/g1qfoVDV5pLUm2iP0amR1ZFMUTMd7rQQnqey3j4pztxZAJmzRoBVLP81yFl sbL7oQwlut+yD1LkYVcfdHsdi3udsSNL0lAr7F0OpYewz7p59pVy/jUgs/rpCZUtDw5u 62tm5TD7lPsCVQI596nTgk+fdXD06Qu+LTRWbYKuH2dSEBDOK47cfIWM74yHsWk/ekJj tqdaIjHXVIFhw3Whhg+ONHI9E0WF/56YEf0ThwSUf1I5QbklnI54dX7+TmB4vz/r9N01 m3s/WqmAjuFjwp08Al0CrpE1I51nCMHvzexilgNEiH+IA1Szrb+Jo+VYQd1zQZ2Gz74r VnhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:to:cc:subject :from:references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=EXlBlsg6QHN0F9pOJ3q3ORW/InRBYEI8MN3sEPcgq+A=; b=DWNHboWztqlRNjwkg4naXniSXTqJa1IjlsXlftnt/+vWdC0ph8GpmJrACg2RlbN9JW h67ByVTurcE39a/7M+n1Ry56UwfptevJFU8HrZAAOVLe6elWF7twGpswjgmZ8flI9mtn rmWUegZyAlt6K3GEjufDsOgjtUGmzstL3iCuPIndGL2ziYxKQ5BFLJMgteiYBIl/xaxh Ld82BBxdrgIDZ4FD5AWZbMo2obqSukfdbb2PX51I8agt11RmlFV3qDt+oup+gEmKMTMg QeR54eiTgYzok2OuUcq2/tTgF20oxF2vvOK4OpVrixAm8+f112+E+5FervrsY/wfaAPJ SZyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="b/gI5hPD"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si5023104pgv.520.2019.03.07.17.00.34; Thu, 07 Mar 2019 17:00:50 -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=@chromium.org header.s=google header.b="b/gI5hPD"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726299AbfCHA7i (ORCPT + 99 others); Thu, 7 Mar 2019 19:59:38 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45942 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbfCHA7h (ORCPT ); Thu, 7 Mar 2019 19:59:37 -0500 Received: by mail-pf1-f195.google.com with SMTP id v21so12794816pfm.12 for ; Thu, 07 Mar 2019 16:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references:from :subject:cc:to:message-id:user-agent:date; bh=EXlBlsg6QHN0F9pOJ3q3ORW/InRBYEI8MN3sEPcgq+A=; b=b/gI5hPDVQJaY34qrLutwpIH+t73J8aBxiDQt+0rUH8wwIfU5Is6FcziStlk9QGcXD yOPJQB3/tyx9D2QbWXfz/A8O9vLTICDaxQgGB47o0AHtcE+C3XhhutbESf9pnHGIytCf Zp5TqV3coTc7708tcHBx15p3lPKQK9C+w8mnk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:from:subject:cc:to:message-id:user-agent :date; bh=EXlBlsg6QHN0F9pOJ3q3ORW/InRBYEI8MN3sEPcgq+A=; b=k0iVLo+9Emp/JRvKczt7uUVw5d7bP3O5HdL/KWP9kipFCpGEdvV5aTej7aR5gAc56G Q+31iVgZ2fVcq8iQ9woCLNpWiImpTYckQhuWFhnu9jbhBu0hI+5RjRLXkCjOgjpxzqkT JakPgC314PEEByWkiEIGfDiHJoTuKyXHMvpdZtRsN+LEKtEUcO06alhINCnJQ5L81++0 Ds3jCxGMzb0Nd+j9IweoXwZdfheyscr3xFJs+7/fc3WtTQI9oUpofko4zwqc5vKoX/9e YKkzfObBShnyKy2ZmsNvm8Xy8yBnbCwY/UA8mX1AI0M/7HWurg0Nu4EoC1VbkAJumAgH +Rqw== X-Gm-Message-State: APjAAAU+wIm01AAsUGV2b1ToJlM+rn9uIP3U1jKukQJ+KqXITr+3cYC1 //od4JcNIYlnD214bbJEdCpt/5Y1HeqSnw== X-Received: by 2002:a17:902:f096:: with SMTP id go22mr15314708plb.172.1552006776331; Thu, 07 Mar 2019 16:59:36 -0800 (PST) Received: from localhost ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id s79sm11782921pfa.61.2019.03.07.16.59.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Mar 2019 16:59:35 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190222221850.26939-7-ilina@codeaurora.org> References: <20190222221850.26939-1-ilina@codeaurora.org> <20190222221850.26939-7-ilina@codeaurora.org> From: Stephen Boyd Subject: Re: [PATCH v3 6/9] drivers: pinctrl: msm: setup GPIO irqchip hierarchy Cc: 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, Lina Iyer To: Lina Iyer , evgreen@chromium.org, marc.zyngier@arm.com Message-ID: <155200677430.20095.14337964669558394653@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Thu, 07 Mar 2019 16:59:34 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Lina Iyer (2019-02-22 14:18:47) > diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pi= nctrl-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) > =20 > 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. > =20 > + if (d->parent_data) > + irq_chip_set_wake_parent(d, on); > + > return 0; > } > =20 Here's a patch on top. If you need my signed-off-by please feel free to add it: Signed-off-by: Stephen Boyd -----8<------- diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinc= trl-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) =20 static int msm_gpio_irq_set_wake(struct irq_data *d, unsigned int on) { - struct gpio_chip *gc =3D irq_data_get_irq_chip_data(d); - struct msm_pinctrl *pctrl =3D 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); =20 - return 0; + return -ENOSYS; } =20 static int msm_gpio_irq_reqres(struct irq_data *d)