summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
author谢致邦 (XIE Zhibang) <Yeking@Red54.com>2026-06-30 05:04:21 +0000
committerJiri Kosina <jkosina@suse.com>2026-08-03 19:31:14 +0200
commitfd7c67d05fb695b1deb07f9e213dd7e80e3a8427 (patch)
treef402b0817866d2711f1c71825fdea46cd1380dff /tools/perf/scripts/python/bin
parent6bad2e38fe7f2da7dc982b2b80814e632832e568 (diff)
HID: i2c-hid: Refactor _DSM helper and add i2c-hid-acpi-prp0001 driver
Move the _DSM call that gets the HID descriptor address from i2c-hid-acpi.c into i2c-hid-acpi.h as a static inline so both the ACPI and the new PRP0001 driver can use it. While refactoring, move the blacklist check and the _DSM call to the top of probe() to avoid a pointless alloc when the device is blacklisted or does not implement the _DSM. Some devices, for example the Lenovo KaiTian N60d and Inspur CP300L3, are declared with _HID "PRP0001" and _DSD compatible "hid-over-i2c" but lack "hid-descr-addr" from the _DSD and provide the HID descriptor address only through an ACPI _DSM. The OF driver fails to probe them because it requires hid-descr-addr. Add a new driver that handles these devices by calling the shared _DSM helper. Link: https://lore.kernel.org/tencent_F6FC553D1BB737FC00062AD0FEF43C580F0A@qq.com Fixes: b33752c30023 ("HID: i2c-hid: Reorganize so ACPI and OF are separate modules") Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions