Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1071619ybf; Fri, 28 Feb 2020 13:26:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzRP3YrGsD7I8LgPhlU7zEvQkzHUyEpc4Y9MVbiC72r6mqWlFNSh7uLRYHvPogCFDLdQOzC X-Received: by 2002:a9d:5607:: with SMTP id e7mr5045402oti.196.1582925186432; Fri, 28 Feb 2020 13:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582925186; cv=none; d=google.com; s=arc-20160816; b=TYs5hBFWZ16BeW3hnaNu+RVTvE4ZEhlQb2GzwD09l2M3bnb/1QjYf2iUpKlRWnr8oc s31h9WfqZhjevKlABw388DRcXjx36Ayek4pPGPTcRMYWmbjwbSsMbjruGOypjrkZDs9A v9vFXSA8j1bmUrwZ+Smi6wBcm0U2Vj1mSa5IWgFT9bWD7pqiX7ytvTlDICk5WWh4siZS bFVDkz4TctZx6jxPKFhg7JIGkY22mJ2Gw/sI44TO3SyuEvBQGvshBCZwpMBc066MAp8H 3QD1w7iImiXrJqk4rD+TqmvA+5DDrqztqiPKfoZzGP9PWPtoC2Q593izTJf4zEtomHYn qTXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:to:references:date :subject:mime-version:content-transfer-encoding:from:dkim-signature; bh=E7XyFkTvbjpmPkHbdIsblJhB2bTjT3iJeDgMpf7dsPY=; b=aQ4yyS2FNR2eLRMN193q5SwW/HZpVE+pp0+temEdrwo4qvg2V7jSyQZvXD4asMVnXo QBToIfZ0YrrWtv3LhpsPUPHaj6Ha/pY0+ccYfRtE3FjJx6leYEBxKqNceG1SsOQYbsKR YmwU+X2XVdOWY9UFNEgmB3wMa53bc0p277jME4ZKMEJO2mLfA+dJtP8714qZJvBvwyoU MkzDhT4gSBxKh+TbP2ewPLEkGaIAbxV8B3PpBGoXEQwjQCRIE2kb+8L4aWPoAQq8sq9l Yl9N6pIcza72+MlvIJs2k2jaZM4i9j3GiNWMbVSldpYaUu7gbw7PRPi8oHgh2N0j8w3n sLmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=ihkb5lVk; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f4si2114015oto.169.2020.02.28.13.26.14; Fri, 28 Feb 2020 13:26:26 -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=@oracle.com header.s=corp-2020-01-29 header.b=ihkb5lVk; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbgB1VZV (ORCPT + 99 others); Fri, 28 Feb 2020 16:25:21 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:56296 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbgB1VZV (ORCPT ); Fri, 28 Feb 2020 16:25:21 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01SLO7j9038447 for ; Fri, 28 Feb 2020 21:25:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : content-type : content-transfer-encoding : mime-version : subject : date : references : to : in-reply-to : message-id; s=corp-2020-01-29; bh=E7XyFkTvbjpmPkHbdIsblJhB2bTjT3iJeDgMpf7dsPY=; b=ihkb5lVk4aI6H6lnZpcDpKsoOcz1nqFXFBv3vaBGbyAIn83DUGBuAoWH6+UoNhaycT4E d9e0hV+i/F+Ycvsrv5ogSn8NuHIc3sr9KMA806LPj7zfXEJhRu4oQrayxJhpcV9JuQWO eHG32X0XhNhexGcD//A3GB2Yla3gjjPrnzS05c4+GdtRys/msixFLBtIfHxPzTK8yoHb 8EP8TpiJndAYA0rFReUynPlWJdIqsjyVtzDur7+sIryirdE6WKNGzEXUpbeQgpKms/j2 vs2/Rzg/8QZHwVLiI4Ur79CsluuZKiQIisf7YaohkujNzXU0HglVrdt4V/XAjJ9Z0/du oA== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 2ydcsnwg2g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 28 Feb 2020 21:25:19 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01SLGtlS115527 for ; Fri, 28 Feb 2020 21:25:18 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2ydcsg76cr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 28 Feb 2020 21:25:18 +0000 Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 01SLPIMs001480 for ; Fri, 28 Feb 2020 21:25:18 GMT Received: from dhcp-10-154-108-96.vpn.oracle.com (/10.154.108.96) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 28 Feb 2020 13:25:18 -0800 From: John Donnelly Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: [PATCH ] ipmi_si: Fix false error about IRQ registration Date: Fri, 28 Feb 2020 15:25:16 -0600 References: <161D2B48-8034-4467-A085-7B69458144C9@oracle.com> To: linux-kernel@vger.kernel.org In-Reply-To: <161D2B48-8034-4467-A085-7B69458144C9@oracle.com> Message-Id: <5E488521-038E-4F6E-A2DB-5A5A61271069@oracle.com> X-Mailer: Apple Mail (2.3445.9.1) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9545 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 mlxscore=0 suspectscore=5 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002280150 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9545 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 phishscore=0 spamscore=0 adultscore=0 suspectscore=5 impostorscore=0 clxscore=1015 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002280150 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please Ignore . =20 Let me correct the contents in v2=20 > On Feb 28, 2020, at 3:22 PM, John Donnelly = wrote: >=20 > Since commit 7723f4c5ecdb ("driver core: platform: Add an error = message > to platform_get_irq()"), platform_get_irq() will call dev_err() on an > error, even though the IRQ usage in the ipmi_si driver is optional. >=20 > Use the platform_get_irq_optional() call to avoid the message from > alerting users with false alarms. >=20 > Orabug: 30970275 >=20 > Signed-off-by: John Donnelly > --- > drivers/char/ipmi/ipmi_si_platform.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > 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 =3D slave_addr; >=20 > - io.irq =3D platform_get_irq(pdev, 0); > + io.irq =3D platform_get_irq_optional(pdev, 0); > if (io.irq > 0) > io.irq_setup =3D ipmi_std_irq_setup; > else > @@ -378,7 +378,7 @@ static int acpi_ipmi_probe(struct platform_device = *pdev) > io.irq =3D tmp; > io.irq_setup =3D acpi_gpe_irq_setup; > } else { > - int irq =3D platform_get_irq(pdev, 0); > + int irq =3D platform_get_irq_optional(pdev, 0); >=20 > if (irq > 0) { > io.irq =3D irq; > --=20 > 2.20.1