Hello Alexey,

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

> From:
> 
> Alexey Brodkin <alexey.brod...@synopsys.com>
> 
> To:
> 
> "christian.rupp...@alitech.com" <christian.rupp...@alitech.com>, 
> 
> Cc:
> 
> "mika.westerb...@linux.intel.com" <mika.westerb...@linux.intel.com>,
> "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, 
> "vineet.gup...@synopsys.com" <vineet.gup...@synopsys.com>, "wsa@the-
> dreams.de" <w...@the-dreams.de>, "andriy.shevche...@linux.intel.com" 
> <andriy.shevche...@linux.intel.com>, "linux-...@vger.kernel.org" 
> <linux-...@vger.kernel.org>, "christian.rupp...@abilis.com" 
> <christian.rupp...@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

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

Reply via email to