Re: [PATCH] HID: i2c-hid: check if device is there before really probing

From: Jiri Kosina
Date: Tue May 15 2018 - 05:16:12 EST


On Wed, 9 May 2018, Dmitry Torokhov wrote:

> From: Dmitry Torokhov <dtor@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxx>

Applied, thanks.

--
Jiri Kosina
SUSE Labs