lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 3 Mar 2015 17:50:55 +0100
From:	christian.ruppert@...tech.com
To:	Alexey Brodkin <Alexey.Brodkin@...opsys.com>
Cc:	"andriy.shevchenko@...ux.intel.com" 
	<andriy.shevchenko@...ux.intel.com>,
	"christian.ruppert@...lis.com" <christian.ruppert@...lis.com>,
	"linux-i2c@...r.kernel.org" <linux-i2c@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"mika.westerberg@...ux.intel.com" <mika.westerberg@...ux.intel.com>,
	"Vineet.Gupta1@...opsys.com" <Vineet.Gupta1@...opsys.com>,
	"wsa@...-dreams.de" <wsa@...-dreams.de>
Subject: Re: [PATCH] i2c: designware: Suppress error message if platform_get_irq() returns
 -EPROBE_DEFER

Hello Alexey,

Alexey Brodkin <Alexey.Brodkin@...opsys.com> wrote on 03/03/2015 05:37:31 
PM:

> From:
> 
> Alexey Brodkin <Alexey.Brodkin@...opsys.com>
> 
> To:
> 
> "christian.ruppert@...tech.com" <christian.ruppert@...tech.com>, 
> 
> Cc:
> 
> "mika.westerberg@...ux.intel.com" <mika.westerberg@...ux.intel.com>,
> "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, 
> "Vineet.Gupta1@...opsys.com" <Vineet.Gupta1@...opsys.com>, "wsa@...-
> dreams.de" <wsa@...-dreams.de>, "andriy.shevchenko@...ux.intel.com" 
> <andriy.shevchenko@...ux.intel.com>, "linux-i2c@...r.kernel.org" 
> <linux-i2c@...r.kernel.org>, "christian.ruppert@...lis.com" 
> <christian.ruppert@...lis.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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ