-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Saravana Kannan
authored and
Greg Kroah-Hartman
committed
Jul 10, 2020
1 parent
8fd456e
commit da6d647
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
Documentation/ABI/testing/sysfs-devices-waiting_for_supplier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
What: /sys/devices/.../waiting_for_supplier | ||
Date: May 2020 | ||
Contact: Saravana Kannan <saravanak@google.com> | ||
Description: | ||
The /sys/devices/.../waiting_for_supplier attribute is only | ||
present when fw_devlink kernel command line option is enabled | ||
and is set to something stricter than "permissive". It is | ||
removed once a device probes successfully (because the | ||
information is no longer relevant). The number read from it (0 | ||
or 1) reflects whether the device is waiting for one or more | ||
suppliers to be added and then linked to using device links | ||
before the device can probe. | ||
|
||
A value of 0 means the device is not waiting for any suppliers | ||
to be added before it can probe. A value of 1 means the device | ||
is waiting for one or more suppliers to be added before it can | ||
probe. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters