OpenCloudOS-Kernel/Documentation/driver-api/surface_aggregator
Maximilian Luz 5c1e88b98c platform/surface: aggregator: Allow notifiers to avoid communication on unregistering
When SSAM client devices have been (physically) hot-removed,
communication attempts with those devices may fail and time out. This
can even extend to event notifiers, due to which timeouts may occur
during device removal, slowing down that process.

Add a parameter to the notifier unregister function that allows skipping
communication with the EC to prevent this. Furthermore, add wrappers for
registering and unregistering notifiers belonging to SSAM client devices
that automatically check if the device has been marked as hot-removed
and communication should be avoided.

Note that non-SSAM client devices can generally not be hot-removed, so
also add a convenience wrapper for those, defaulting to allow
communication.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20220527023447.2460025-4-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-06-13 17:25:07 +02:00
..
clients platform-drivers-x86 for v5.14-1 2021-06-30 11:15:39 -07:00
client-api.rst docs: driver-api: Add Surface Aggregator subsystem documentation 2021-01-07 00:06:39 +01:00
client.rst platform/surface: aggregator: Allow notifiers to avoid communication on unregistering 2022-06-13 17:25:07 +02:00
index.rst docs: driver-api: Add Surface Aggregator subsystem documentation 2021-01-07 00:06:39 +01:00
internal-api.rst docs: driver-api: Add Surface Aggregator subsystem documentation 2021-01-07 00:06:39 +01:00
internal.rst docs: driver-api: surface_aggregator: avoid using ReST :doc:`foo` markup 2021-06-17 13:24:38 -06:00
overview.rst docs: driver-api: surface_aggregator: avoid using ReST :doc:`foo` markup 2021-06-17 13:24:38 -06:00
ssh.rst docs: driver-api: Add Surface Aggregator subsystem documentation 2021-01-07 00:06:39 +01:00