driver core: Add waiting_for_supplier sysfs file for devices
authorSaravana Kannan <saravanak@google.com>
Thu, 21 May 2020 19:18:00 +0000 (12:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 13:24:56 +0000 (15:24 +0200)
commitda6d647598a6d182eb6a0344a7b14ae005244399
tree88dcad2df2466fa911d88dcad5669b7c72d5b016
parent8fd456ec0cf03875908d6b67c1cd20cf0a7b4474
driver core: Add waiting_for_supplier sysfs file for devices

This would be useful to check if a device is not probing because it's
waiting for a supplier to be added and then linked to before it can
probe.

To reduce sysfs clutter, this file is added only if it can ever be 1.
So, if fw_devlink is disabled or set to permissive, this file is not
added. Also, this file is removed once the device probes as it's no
longer relevant.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20200521191800.136035-4-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-devices-waiting_for_supplier [new file with mode: 0644]
drivers/base/core.c