From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757378AbbCCQtz (ORCPT ); Tue, 3 Mar 2015 11:49:55 -0500 Received: from nopam.alitech.com ([202.3.176.31]:29221 "EHLO nopam.alitech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757254AbbCCQtw (ORCPT ); Tue, 3 Mar 2015 11:49:52 -0500 split_mail: 1 In-Reply-To: <1425400650.17965.53.camel@synopsys.com> References: <1425396456-10633-1-git-send-email-abrodkin@synopsys.com> <54F5E120.3090705@alitech.com> <1425400650.17965.53.camel@synopsys.com> To: Alexey Brodkin Cc: "andriy.shevchenko@linux.intel.com" , "christian.ruppert@abilis.com" , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mika.westerberg@linux.intel.com" , "Vineet.Gupta1@synopsys.com" , "wsa@the-dreams.de" Subject: Re: [PATCH] i2c: designware: Suppress error message if platform_get_irq() returns -EPROBE_DEFER MIME-Version: 1.0 X-KeepSent: 441D1D4D:39476C28-C1257DFD:005BE73C; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: christian.ruppert@alitech.com Date: Tue, 3 Mar 2015 17:50:55 +0100 X-MailConfidential: Public X-MIMETrack: Serialize by Router on TWALINS2/ALI_TPE/ALi(Release 8.0.2FP6|July 15, 2010) at 2015/03/04 ?? 12:50:57, Serialize complete at 2015/03/04 ?? 12:50:57 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Alexey, Alexey Brodkin wrote on 03/03/2015 05:37:31 PM: > From: > > Alexey Brodkin > > To: > > "christian.ruppert@alitech.com" , > > Cc: > > "mika.westerberg@linux.intel.com" , > "linux-kernel@vger.kernel.org" , > "Vineet.Gupta1@synopsys.com" , "wsa@the- > dreams.de" , "andriy.shevchenko@linux.intel.com" > , "linux-i2c@vger.kernel.org" > , "christian.ruppert@abilis.com" > > > Date: > > 03/03/2015 05:38 PM > > Subject: > > Re: [PATCH] i2c: designware: Suppress error message if > platform_get_irq() returns -EPROBE_DEFER > > Hi Christian, > [...] > > > > > > irq = platform_get_irq(pdev, 0); > > > if (irq < 0) { > > > - dev_err(&pdev->dev, "no irq resource?\n"); > > > + if (irq != -EPROBE_DEFER) > > > + dev_err(&pdev->dev, "no irq resource?\n"); > > > > Presented like this I wonder if this merits being a dev_err at all. > > Wouldn't dev_dbg be more adequate? This might remove the need for the > > condition and also avoid bothering everyone if something in the platform > > device structures or device tree is not right. > > > > > return irq; /* -ENXIO */ > > > } > > We've just had similar discussion related to DW APB UART with Andy here > https://lkml.org/lkml/2015/3/3/412 > > So yes probably we may safely remove error message from here completely. I agree. Although you do have a point (in the other thread) when saying this kind of messages can be useful in some situations. The process of debugging device tree and platform device setup is definitely more painful for drivers which omit this type of messages completely. Andy's proposal of centralising this looks like a very good solution here (and on top of that removes many useless strings from the kernel binary). Greetings, Christian