]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: i2c-hid: Make elan touch controllers power on after panel is enabled
authorPin-yen Lin <treapking@chromium.org>
Mon, 18 Aug 2025 11:49:34 +0000 (19:49 +0800)
committerDouglas Anderson <dianders@chromium.org>
Mon, 25 Aug 2025 16:18:39 +0000 (09:18 -0700)
commitcbdd16b818eef876dd2de9d503fe7397a0666cbe
tree0b0d86f8533ee0687a057c5e3c393f0ce167dfa9
parent2eb22214c132374e11e681c44d7879c91f67f614
HID: i2c-hid: Make elan touch controllers power on after panel is enabled

Introduce a new HID quirk to indicate that this device has to be enabled
after the panel's backlight is enabled, and update the driver data for
the elan devices to enable this quirk. This cannot be a I2C HID quirk
because the kernel needs to acknowledge this before powering up the
device and read the VID/PID. When this quirk is enabled, register
.panel_enabled()/.panel_disabling() instead for the panel follower.

Also rename the *panel_prepare* functions into *panel_follower* because
they could be called in other situations now.

Fixes: bd3cba00dcc63 ("HID: i2c-hid: elan: Add support for Elan eKTH6915 i2c-hid touchscreens")
Fixes: d06651bebf99e ("HID: i2c-hid: elan: Add elan-ekth6a12nay timing")
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Pin-yen Lin <treapking@chromium.org>
Acked-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20250818115015.2909525-2-treapking@chromium.org
drivers/hid/i2c-hid/i2c-hid-core.c
drivers/hid/i2c-hid/i2c-hid-of-elan.c
include/linux/hid.h