diff options
author | Saravana Kannan <saravanak@google.com> | 2023-03-04 03:53:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-10 11:06:22 +0300 |
commit | f8fb576658a3e19796e2e1a12a5ec8f44dac02b6 (patch) | |
tree | 754eb365da8989ddeebdd90206ee61ef7f799246 /Documentation/ABI/testing/sysfs-devices-state_synced | |
parent | ffbe08a8e86d03513dc45b5389fab7f3477433b6 (diff) | |
download | linux-f8fb576658a3e19796e2e1a12a5ec8f44dac02b6.tar.xz |
driver core: Make state_synced device attribute writeable
If the file is written to and sync_state() hasn't been called for the
device yet, then call sync_state() for the device independent of the
state of its consumers.
This is useful for supplier devices that have one or more consumers that
don't have a driver but the consumers are in a state that don't use the
resources supplied by the supplier device.
This gives finer grained control than using the
fw_devlink.sync_state=timeout kernel commandline parameter.
Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20230304005355.746421-3-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-devices-state_synced')
-rw-r--r-- | Documentation/ABI/testing/sysfs-devices-state_synced | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-devices-state_synced b/Documentation/ABI/testing/sysfs-devices-state_synced index 0c922d7d02fc..c64636ddac41 100644 --- a/Documentation/ABI/testing/sysfs-devices-state_synced +++ b/Documentation/ABI/testing/sysfs-devices-state_synced @@ -21,4 +21,9 @@ Description: at the time the kernel starts are not affected or limited in any way by sync_state() callbacks. + Writing "1" to this file will force a call to the device's + sync_state() function if it hasn't been called already. The + sync_state() call happens independent of the state of the + consumer devices. + |