WSL2-Linux-Kernel/drivers/input/keyboard
Andrei Lalaev 3bff42b29a Input: qt1050 - handle CHIP_ID reading error
[ Upstream commit 866a5c7e2781cf1b019072288f1f5c64186dcb63 ]

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: cbebf5adde ("Input: qt1050 - add Microchip AT42QT1050 support")
Signed-off-by: Andrei Lalaev <andrei.lalaev@anton-paar.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.kernel.org/r/20240617183018.916234-1-andrey.lalaev@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-08-19 05:45:05 +02:00
..
Kconfig Input: samsung-keypad - properly state IOMEM dependency 2022-03-08 19:12:53 +01:00
Makefile
adc-keys.c Input: adc-keys - drop bogus __refdata annotation 2021-09-03 23:49:58 -07:00
adp5520-keys.c
adp5588-keys.c Input: adp5588-keys - use the right header 2021-08-30 15:55:15 -07:00
adp5589-keys.c Input: adp5589-keys - use the right header 2021-08-30 15:55:18 -07:00
amikbd.c
applespi.c Input: applespi - fix occasional crc errors under load. 2021-02-19 11:13:29 -08:00
applespi.h
applespi_trace.h
atakbd.c
atkbd.c Input: atkbd - skip ATKBD_CMD_SETLEDS when skipping ATKBD_CMD_GETID 2024-02-23 08:55:00 +01:00
bcm-keypad.c
cap11xx.c
clps711x-keypad.c
cros_ec_keyb.c Input: cros_ec_keyb - use kobj_to_dev() API 2021-06-19 22:36:19 -07:00
davinci_keyscan.c
dlink-dir685-touchkeys.c
ep93xx_keypad.c Input: ep93xx_keypad - prepare clock before using it 2021-08-29 19:15:30 -07:00
goldfish_events.c
gpio_keys.c Input: gpio-keys - cancel delayed work only in case of GPIO 2022-06-09 10:22:43 +02:00
gpio_keys_polled.c Input: gpio_keys_polled - suppress deferred probe error for gpio 2024-03-26 18:21:13 -04:00
hil_kbd.c Input: hil_kbd - fix error return code in hil_dev_connect() 2021-05-24 20:57:04 -07:00
hilkbd.c parisc: Make struct parisc_driver::remove() return void 2021-08-30 10:18:25 +02:00
hpps2atkbd.h
imx_keypad.c Input: imx_keypad - convert to a DT-only driver 2021-03-27 21:40:21 -07:00
imx_sc_key.c
ipaq-micro-keys.c Input: ipaq-micro-keys - add error handling for devm_kmemdup 2024-01-05 15:13:32 +01:00
iqs62x-keys.c
jornada680_kbd.c
jornada720_kbd.c
lkkbd.c
lm8323.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 394 2019-06-05 17:37:12 +02:00
lm8333.c
locomokbd.c ARM: 9049/1: locomo: make locomo bus's remove callback return void 2021-02-01 19:44:30 +00:00
lpc32xx-keys.c Input: use input_device_enabled() 2020-12-02 22:10:33 -08:00
maple_keyb.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 64 2019-05-24 17:36:46 +02:00
matrix_keypad.c
max7359_keypad.c
mcs_touchkey.c
mpr121_touchkey.c
mtk-pmic-keys.c
newtonkbd.c
nomadik-ske-keypad.c Input: nomadik-ske-keypad - provide some missing struct member docs 2020-11-08 22:19:53 -08:00
nspire-keypad.c Input: nspire-keypad - enable interrupts only when opened 2021-03-23 10:55:10 -07:00
omap-keypad.c
omap4-keypad.c Input: omap4-keypad - fix pm_runtime_get_sync() error checking 2022-04-27 14:38:58 +02:00
opencores-kbd.c
pmic8xxx-keypad.c Input: use input_device_enabled() 2020-12-02 22:10:33 -08:00
pxa27x_keypad.c Input: use input_device_enabled() 2020-12-02 22:10:33 -08:00
pxa930_rotary.c
qt1050.c Input: qt1050 - handle CHIP_ID reading error 2024-08-19 05:45:05 +02:00
qt1070.c
qt2160.c
samsung-keypad.c Input: use input_device_enabled() 2020-12-02 22:10:33 -08:00
sh_keysc.c
snvs_pwrkey.c Input: snvs_pwrkey - fix SNVS_HPVIDR1 register address 2022-10-05 10:39:37 +02:00
spear-keyboard.c Input: use input_device_enabled() 2020-12-02 22:10:33 -08:00
st-keyscan.c Input: use input_device_enabled() 2020-12-02 22:10:33 -08:00
stmpe-keypad.c
stowaway.c
sun4i-lradc-keys.c
sunkbd.c Input: sunkbd - avoid use-after-free in teardown paths 2020-11-08 21:59:07 -08:00
tc3589x-keypad.c
tca6416-keypad.c Input: tca6416-keypad - fix interrupt enable disbalance 2023-09-19 12:22:57 +02:00
tca8418_keypad.c
tegra-kbc.c Input: move to use request_irq by IRQF_NO_AUTOEN flag 2021-03-25 15:27:56 -07:00
tm2-touchkey.c Input: tm2-touchkey - add vddio regulator 2020-12-09 19:47:11 -08:00
twl4030_keypad.c Input: twl4030_keypad - fix handling of platform_get_irq() error 2020-09-16 10:42:15 -07:00
xtkbd.c