[RESEND PATCH v5 1/5] driver core: add probe_err log helper

Andy Shevchenko andy.shevchenko at gmail.com
Wed Jun 24 09:45:28 EDT 2020


On Wed, Jun 24, 2020 at 4:27 PM Mark Brown <broonie at kernel.org> wrote:
>
> On Wed, Jun 24, 2020 at 01:41:23PM +0200, Andrzej Hajda wrote:
> > During probe every time driver gets resource it should usually check for error
> > printk some message if it is not -EPROBE_DEFER and return the error. This
>
> As I said down the thread that's not a great pattern since it means that
> probe deferral errors never get displayed and users have a hard time
> figuring out why their driver isn't instantiating.

Don't we have a file in the debugfs to list deferred drivers?

In the case of deferred probes the errors out of it makes users more
miserable in order to look through tons of spam and lose really useful
data in the logs.

-- 
With Best Regards,
Andy Shevchenko



More information about the linux-arm-kernel mailing list