aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/surface/surface_aggregator_registry.c
diff options
context:
space:
mode:
authorMaximilian Luz <[email protected]>2022-05-27 04:34:38 +0200
committerHans de Goede <[email protected]>2022-06-13 17:25:07 +0200
commit5c1e88b98c60e4074796e9a05d3c674479ab1919 (patch)
tree5d84e6cc2ff592ce7eb5271b07ce87f22a9a5fd5 /drivers/platform/surface/surface_aggregator_registry.c
parentdc0393c76f378f68961587fd4f32de29fb8f0c79 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
Diffstat (limited to 'drivers/platform/surface/surface_aggregator_registry.c')
0 files changed, 0 insertions, 0 deletions