linux/drivers/hid/surface-hid
Maximilian Luz 2c2c3a0708 HID: surface-hid: Add support for hot-removal
Add support for hot-removal of SSAM HID client devices.

Once a device has been hot-removed, further communication with it should
be avoided as it may fail and time out. While the device will be removed
as soon as we detect hot-removal, communication may still occur during
teardown, especially when unregistering notifiers.

While hot-removal is a surprise event that can happen at any time, try
to avoid communication as much as possible once it has been detected to
prevent timeouts that can slow down device removal and cause issues,
e.g. when quickly re-attaching the device.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20220527023447.2460025-8-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:08 +02:00
..
Kconfig
Makefile
surface_hid_core.c HID: surface-hid: Add support for hot-removal 2022-06-13 17:25:08 +02:00
surface_hid_core.h
surface_hid.c HID: surface-hid: Allow driver matching for target ID 1 devices 2021-10-22 10:55:23 +02:00
surface_kbd.c