Message ID | 20230309111209.31606-1-johan+linaro@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp242063wrd; Thu, 9 Mar 2023 03:48:55 -0800 (PST) X-Google-Smtp-Source: AK7set8IHmCJ9UrvEeG2/qYTSK0uIIqAusXmDPyLZqs07N20ikVY6nICY5nM+lbOfxUoDaTATdeC X-Received: by 2002:a17:90b:4d8f:b0:234:2c8b:6db3 with SMTP id oj15-20020a17090b4d8f00b002342c8b6db3mr22490706pjb.33.1678362535390; Thu, 09 Mar 2023 03:48:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678362535; cv=none; d=google.com; s=arc-20160816; b=zQDFuymyWwJHgCsf3Q9NsiqResG2/KHi6F1hIhIpUhrPdIkGOxhct8Vr05we2j0aue GMT7kMzcYGsY+PwQWm617BaA/xdzLRXFcqkYdCRVGWU28dHbQBM87f+7XDvQZVwppju8 tpFJx+1K88OHH5X3XX//2npGda+g35hO3mCqXKnqDnYNgiexps+AFtPgSwTvCPeVfo85 4jEldYfoJyHH5fDadLsc4DXpKrC5AOoyxs4Yps8xiycXeEFOrpiiTJyWHB3YHLt/mrBS UQdbyCu8d6ya0qhzedW4XjXlvIBhYHd8Vgm2/CHFz8Sbgg/NW2LxSUikXyTHZ/u2HH5D 6YOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=P9cfEiQXeXxXhstQ4coaAuEEKWdODd3O+GaFLb+jdMk=; b=srJ97vRmntuDHqKfv+AzMudMPph0Irx3K3u2gCvTlOXlglkx0wwryygmbo5HtUnqIQ vP5jdw7WMAPvFyiC/Sy+x8AZXaH9kYDHbFHAqrfsD64u/7fT+exT/Nv1isMIJvIL8l08 QMXsvFwIekNIvcWjbqPEd0FODM8EqGTgkFjprowL2p9s3yjySBSJ38g561AFW/Iqu0SU k6Fn/8Fqnw3AVSttfjhs5gho1BmNCr2qe2Bm+aR1YyaRb135z2vPz0MQVDc/1EEHwvVL bu8neWBni8vNpKfhqbDNhsJg+++CrMkhd8EGjKbN5E+CeLUQt9Rz+PHKFvwoj99rAxCv M5vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t2iOlfHE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az14-20020a17090b028e00b002341fe2f578si1946636pjb.138.2023.03.09.03.48.40; Thu, 09 Mar 2023 03:48:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=t2iOlfHE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbjCILQr (ORCPT <rfc822;carlos.wei.hk@gmail.com> + 99 others); Thu, 9 Mar 2023 06:16:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231515AbjCILQ2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 9 Mar 2023 06:16:28 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71C37ED0D1; Thu, 9 Mar 2023 03:12:06 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 29F42B81ED6; Thu, 9 Mar 2023 11:12:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B29EEC433D2; Thu, 9 Mar 2023 11:12:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678360323; bh=UjTdMRVXaqEY+xVySMqwPf3Ofga2yedHc4jEmU/eCFY=; h=From:To:Cc:Subject:Date:From; b=t2iOlfHELw7E8hKJOA+2s/bUMo5oUk0AujU2MOqNAxEQpNwTJpoxnOMelHDAi0vlv w5vW92q34ANgty4tpHBVnjUGRPPuF0fiow8Gj+0KP0sIqG1E94iV0KbAjQzN4mMtf+ RXrVduRxNTPKq9oh7x/H3432IyWqEfy+EFint5/Gl0o1+IH7ZUPNlTAlRs9YM8ZEib LwbTIBN58VXpZuE5s8xgM2hvkCjKCnAR1GBfZ6LAdOemo5mt5mitK0YAH2sm336gRm AP4pMHDJOu17fnHV9RjbLD55XuL33Lgq3bngiN+v/6FBPd0K+vGPrN5eLtrOW+mYXk yCA/mA7CfTj+w== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from <johan+linaro@kernel.org>) id 1paECa-0008EG-Kc; Thu, 09 Mar 2023 12:12:52 +0100 From: Johan Hovold <johan+linaro@kernel.org> To: Bjorn Andersson <andersson@kernel.org> Cc: Andy Gross <agross@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold <johan+linaro@kernel.org>, Guru Das Srinagesh <quic_gurus@quicinc.com>, Sibi Sankar <quic_sibis@quicinc.com> Subject: [PATCH] firmware: qcom: scm: fix bogus irq error at probe Date: Thu, 9 Mar 2023 12:12:09 +0100 Message-Id: <20230309111209.31606-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759890673827886687?= X-GMAIL-MSGID: =?utf-8?q?1759890673827886687?= |
Series |
firmware: qcom: scm: fix bogus irq error at probe
|
|
Commit Message
Johan Hovold
March 9, 2023, 11:12 a.m. UTC
A recent commit added support for an optional interrupt which is only
available on some platforms.
Stop spamming the logs with bogus error messages on platforms that do
not use this new optional resource:
qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found
Fixes: 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic")
Cc: Guru Das Srinagesh <quic_gurus@quicinc.com>
Cc: Sibi Sankar <quic_sibis@quicinc.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/firmware/qcom_scm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 9.03.2023 12:12, Johan Hovold wrote: > A recent commit added support for an optional interrupt which is only > available on some platforms. > > Stop spamming the logs with bogus error messages on platforms that do > not use this new optional resource: > > qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found > > Fixes: 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic") > Cc: Guru Das Srinagesh <quic_gurus@quicinc.com> > Cc: Sibi Sankar <quic_sibis@quicinc.com> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad > drivers/firmware/qcom_scm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c > index 468d4d5ab550..b1e11f85b805 100644 > --- a/drivers/firmware/qcom_scm.c > +++ b/drivers/firmware/qcom_scm.c > @@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev) > > init_completion(&__scm->waitq_comp); > > - irq = platform_get_irq(pdev, 0); > + irq = platform_get_irq_optional(pdev, 0); > if (irq < 0) { > if (irq != -ENXIO) > return irq;
On Mar 09 2023 12:12, Johan Hovold wrote: > A recent commit added support for an optional interrupt which is only > available on some platforms. > > Stop spamming the logs with bogus error messages on platforms that do > not use this new optional resource: > > qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found > > Fixes: 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic") > Cc: Guru Das Srinagesh <quic_gurus@quicinc.com> > Cc: Sibi Sankar <quic_sibis@quicinc.com> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Acked-by: Guru Das Srinagesh <quic_gurus@quicinc.com> Thanks for catching this! > --- > drivers/firmware/qcom_scm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c > index 468d4d5ab550..b1e11f85b805 100644 > --- a/drivers/firmware/qcom_scm.c > +++ b/drivers/firmware/qcom_scm.c > @@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev) > > init_completion(&__scm->waitq_comp); > > - irq = platform_get_irq(pdev, 0); > + irq = platform_get_irq_optional(pdev, 0); > if (irq < 0) { > if (irq != -ENXIO) > return irq; > -- > 2.39.2 >
On Thu, Mar 9, 2023 at 5:16 AM Johan Hovold <johan+linaro@kernel.org> wrote: > > A recent commit added support for an optional interrupt which is only > available on some platforms. > > Stop spamming the logs with bogus error messages on platforms that do > not use this new optional resource: > > qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found > > Fixes: 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic") > Cc: Guru Das Srinagesh <quic_gurus@quicinc.com> > Cc: Sibi Sankar <quic_sibis@quicinc.com> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> > --- > drivers/firmware/qcom_scm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c > index 468d4d5ab550..b1e11f85b805 100644 > --- a/drivers/firmware/qcom_scm.c > +++ b/drivers/firmware/qcom_scm.c > @@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev) > > init_completion(&__scm->waitq_comp); > > - irq = platform_get_irq(pdev, 0); > + irq = platform_get_irq_optional(pdev, 0); > if (irq < 0) { > if (irq != -ENXIO) > return irq; > -- > 2.39.2 > Thank you! Tested on the Thinkpad X13s Tested-by: Steev Klimaszewski <steev@kali.org> # Thinkpad X13s
Hey Johan, Thanks for the fix. On 3/9/23 16:42, Johan Hovold wrote: > A recent commit added support for an optional interrupt which is only > available on some platforms. > > Stop spamming the logs with bogus error messages on platforms that do > not use this new optional resource: > > qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found > > Fixes: 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic") > Cc: Guru Das Srinagesh <quic_gurus@quicinc.com> > Cc: Sibi Sankar <quic_sibis@quicinc.com> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Sibi Sankar <quic_sibis@quicinc.com> > --- > drivers/firmware/qcom_scm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c > index 468d4d5ab550..b1e11f85b805 100644 > --- a/drivers/firmware/qcom_scm.c > +++ b/drivers/firmware/qcom_scm.c > @@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev) > > init_completion(&__scm->waitq_comp); > > - irq = platform_get_irq(pdev, 0); > + irq = platform_get_irq_optional(pdev, 0); > if (irq < 0) { > if (irq != -ENXIO) > return irq;
On Thu, 9 Mar 2023 12:12:09 +0100, Johan Hovold wrote: > A recent commit added support for an optional interrupt which is only > available on some platforms. > > Stop spamming the logs with bogus error messages on platforms that do > not use this new optional resource: > > qcom_scm firmware:scm: error -ENXIO: IRQ index 0 not found > > [...] Applied, thanks! [1/1] firmware: qcom: scm: fix bogus irq error at probe commit: f3d0fbad6765da25de7ecf6481af9b6ddb0b3793 Best regards,
diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmware/qcom_scm.c index 468d4d5ab550..b1e11f85b805 100644 --- a/drivers/firmware/qcom_scm.c +++ b/drivers/firmware/qcom_scm.c @@ -1479,7 +1479,7 @@ static int qcom_scm_probe(struct platform_device *pdev) init_completion(&__scm->waitq_comp); - irq = platform_get_irq(pdev, 0); + irq = platform_get_irq_optional(pdev, 0); if (irq < 0) { if (irq != -ENXIO) return irq;