Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp550113ybv; Thu, 13 Feb 2020 05:30:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyxsTqs/mmuYiCzeT7JJOjeHTKx9ESP3RZVJ6c/SThgkNeETLi6JwfiWy35MjxtMKagRkKQ X-Received: by 2002:a05:6830:18f6:: with SMTP id d22mr6432332otf.59.1581600615964; Thu, 13 Feb 2020 05:30:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581600615; cv=none; d=google.com; s=arc-20160816; b=LCRVfwLKgxBah2uYrXRiunLhoNp7yypOBA6JCB7uww+PFWk1QIJdYk44Pq6fRBQtLJ nk6nuUUo4CHlFo0P6jk6Ia3hr2Olhkcw7a67gJyQnbBttfcP54bzaWW9mKZrnUd0PTiQ W6Bx8Sw5qMqlGUq5t1AGdtSgTpCGRKANKBGKUVuy+1hmhC0sYN8rcVRratCqgcUjW/Xf SG5UqhFsiJhAkoBTKGW4P8S+mZvs/R4z7ZQJ6MyWi6GnWj8bGxbf8QPVCYw5dLMwkQM4 1L2GVdATlGSmUBhGTsCYJ+h5/PoofwQAVE8uRam2tn5CVOTp/FofSXOHv6FirRGR0ykW VcXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=6xHbvwX6NgCco+oT6uwzIy5cOkfnEp+krZbRt1lSgnE=; b=ax64tT2w0/sWJfU58RiE/My/s5wdQZ2P7qglgvTlqhWuBGMTzhCPH3ZOUNwqdVuQ06 4o2sjt8Av28fiSczQ9ZRguvMa6eFSEdZijsW1z9ZpCl/TcGr7a5JoxSOy3IWXBFA2uUH 8azpAE4ZNQ0W8A3vHgTdF9Qphkfs++Zohe2iblUwlJNVTaPq90pm0HOOC5D++UxszLes cxQJLqjuvRitqp90MK1td3WQiIBgexffrj0Zrq7zXnrNfzdCeJoRgk4Z1HbfCIi+ZYFG YlWg+1bjxmjVIbXI2z0TS5IkgPkBwz/+0KYWfN64YT7OPEXljyLToDjntzuSAFxSzpvQ lDqg== ARC-Authentication-Results: i=1; mx.google.com; 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 y8si1131714oih.141.2020.02.13.05.30.02; Thu, 13 Feb 2020 05:30:15 -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; 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 S1729988AbgBMN3e (ORCPT + 99 others); Thu, 13 Feb 2020 08:29:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:51360 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729588AbgBMN3e (ORCPT ); Thu, 13 Feb 2020 08:29:34 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 75355AEF8; Thu, 13 Feb 2020 13:29:31 +0000 (UTC) Date: Thu, 13 Feb 2020 14:28:49 +0100 Message-ID: From: Takashi Iwai To: minyard@acm.org Cc: Patrick Vo , openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipmi_si: Avoid spurious errors for optional IRQs In-Reply-To: <20200213130212.GP7842@minyard.net> References: <20200205093146.1352-1-tiwai@suse.de> <20200213130212.GP7842@minyard.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 Feb 2020 14:02:12 +0100, Corey Minyard wrote: > > On Thu, Feb 13, 2020 at 09:34:12AM +0100, Takashi Iwai wrote: > > On Wed, 05 Feb 2020 10:31:46 +0100, > > Takashi Iwai wrote: > > > > > > Although the IRQ assignment in ipmi_si driver is optional, > > > platform_get_irq() spews error messages unnecessarily: > > > ipmi_si dmi-ipmi-si.0: IRQ index 0 not found > > > > > > Fix this by switching to platform_get_irq_optional(). > > > > > > Fixes: 7723f4c5ecdb ("driver core: platform: Add an error message to platform_get_irq*()") > > > Reported-and-tested-by: Patrick Vo > > > Signed-off-by: Takashi Iwai > > > > Any review / ack on this? > > Sorry, lost in the noise. I've included this for 5.7. If you want it > earlier, I can arrange that. It's fine for 5.7, as it's no urgent fix at all. Thanks! Takashi > > Thanks, > > -corey > > > > > > > thanks, > > > > Takashi > > > > > --- > > > drivers/char/ipmi/ipmi_si_platform.c | 4 ++-- > > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > > > diff --git a/drivers/char/ipmi/ipmi_si_platform.c b/drivers/char/ipmi/ipmi_si_platform.c > > > index c78127ccbc0d..638c693e17ad 100644 > > > --- a/drivers/char/ipmi/ipmi_si_platform.c > > > +++ b/drivers/char/ipmi/ipmi_si_platform.c > > > @@ -194,7 +194,7 @@ static int platform_ipmi_probe(struct platform_device *pdev) > > > else > > > io.slave_addr = slave_addr; > > > > > > - io.irq = platform_get_irq(pdev, 0); > > > + io.irq = platform_get_irq_optional(pdev, 0); > > > if (io.irq > 0) > > > io.irq_setup = ipmi_std_irq_setup; > > > else > > > @@ -378,7 +378,7 @@ static int acpi_ipmi_probe(struct platform_device *pdev) > > > io.irq = tmp; > > > io.irq_setup = acpi_gpe_irq_setup; > > > } else { > > > - int irq = platform_get_irq(pdev, 0); > > > + int irq = platform_get_irq_optional(pdev, 0); > > > > > > if (irq > 0) { > > > io.irq = irq; > > > -- > > > 2.16.4 > > > >