]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/base/dd.c
driver core: add deferring probe reason to devices_deferred property
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 13 Jul 2020 14:43:22 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Jul 2020 07:03:43 +0000 (09:03 +0200)
commitd090b70ede02370014a1cf8acd211d1ed0fa9fd9
tree82ca03525f2fcdafa671b580fd2db3d9b8398123
parenta787e5400a1ceeb0ef92d71ec43aeb35b1fa1334
driver core: add deferring probe reason to devices_deferred property

/sys/kernel/debug/devices_deferred property contains list of deferred devices.
This list does not contain reason why the driver deferred probe, the patch
improves it.
The natural place to set the reason is dev_err_probe function introduced
recently, ie. if dev_err_probe will be called with -EPROBE_DEFER instead of
printk the message will be attached to a deferred device and printed when user
reads devices_deferred property.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20200713144324.23654-3-a.hajda@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/base.h
drivers/base/core.c
drivers/base/dd.c