Re: [PATCH] Input: qt1050 - handle CHIP_ID reading error

From: Marco Felsch
Date: Tue Jun 25 2024 - 04:34:37 EST


On 24-06-17, Andrei Lalaev wrote:
> From: Andrei Lalaev <andrei.lalaev@xxxxxxxxxxxxxx>
>
> If the device is missing, we get the following error:
>
> qt1050 3-0041: ID -1340767592 not supported
>
> Let's handle this situation and print more informative error
> when reading of CHIP_ID fails:
>
> qt1050 3-0041: Failed to read chip ID: -6
>
> Fixes: cbebf5addec1 ("Input: qt1050 - add Microchip AT42QT1050 support")
> Signed-off-by: Andrei Lalaev <andrei.lalaev@xxxxxxxxxxxxxx>

Reviewed-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>