1
0
Fork 0
remarkable-linux/drivers/hid/i2c-hid
Dmitry Torokhov d0eca5d32b HID: i2c-hid: check if device is there before really probing
[ Upstream commit b3a81b6c4f ]

On many Chromebooks touch devices are multi-sourced; the components are
electrically compatible and one can be freely swapped for another without
changing the OS image or firmware.

To avoid bunch of scary messages when device is not actually present in the
system let's try testing basic communication with it and if there is no
response terminate probe early with -ENXIO.

Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:50:34 +02:00
..
Kconfig HID: i2c-hid: enhance Kconfig 2012-12-05 10:55:03 +01:00
Makefile HID: i2c-hid: introduce HID over i2c specification implementation 2012-11-19 11:04:38 +01:00
i2c-hid.c HID: i2c-hid: check if device is there before really probing 2018-08-03 07:50:34 +02:00