From: Benjamin Tissoires <bentiss@kernel.org>
To: Jiri Kosina <jikos@kernel.org>
Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
Benjamin Tissoires <bentiss@kernel.org>,
Peter Hutterer <peter.hutterer@who-t.net>
Subject: [PATCH 09/10] HID: bpf: add the Huion Kamvas 27 Pro
Date: Tue, 18 Nov 2025 18:16:30 +0100 [thread overview]
Message-ID: <20251118-wip-sync-udev-hid-bpf-v1-9-0f8105c54835@kernel.org> (raw)
In-Reply-To: <20251118-wip-sync-udev-hid-bpf-v1-0-0f8105c54835@kernel.org>
Same issues with a secondary tip switch instead of secondary barrel
switch as the Kamvas 19.
Copy the stable Kamvas 19 support back into testing and add the vid/pid
for the Kamvas 27.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://gitlab.freedesktop.org/libevdev/udev-hid-bpf/-/merge_requests/189
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
---
drivers/hid/bpf/progs/Huion__Kamvas-Pro-19.bpf.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/hid/bpf/progs/Huion__Kamvas-Pro-19.bpf.c b/drivers/hid/bpf/progs/Huion__Kamvas-Pro-19.bpf.c
index 489cb4fcc2cd2702e4d996ad9435ba0ca454b6d9..5f43e407184854d860eeed4e857acee8bcbd272d 100644
--- a/drivers/hid/bpf/progs/Huion__Kamvas-Pro-19.bpf.c
+++ b/drivers/hid/bpf/progs/Huion__Kamvas-Pro-19.bpf.c
@@ -9,12 +9,15 @@
#define VID_HUION 0x256C
#define PID_KAMVAS_PRO_19 0x006B
+#define PID_KAMVAS_PRO_27 0x006c
#define NAME_KAMVAS_PRO_19 "HUION Huion Tablet_GT1902"
+#define NAME_KAMVAS_PRO_27 "HUION Huion Tablet_GT2701"
#define TEST_PREFIX "uhid test "
HID_BPF_CONFIG(
HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8, VID_HUION, PID_KAMVAS_PRO_19),
+ HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8, VID_HUION, PID_KAMVAS_PRO_27),
);
bool prev_was_out_of_range;
@@ -351,7 +354,8 @@ int probe(struct hid_bpf_probe_args *ctx)
if (!__builtin_memcmp(name, TEST_PREFIX, sizeof(TEST_PREFIX) - 1))
name += sizeof(TEST_PREFIX) - 1;
- if (__builtin_memcmp(name, NAME_KAMVAS_PRO_19, sizeof(NAME_KAMVAS_PRO_19)))
+ if (__builtin_memcmp(name, NAME_KAMVAS_PRO_19, sizeof(NAME_KAMVAS_PRO_19)) &&
+ __builtin_memcmp(name, NAME_KAMVAS_PRO_27, sizeof(NAME_KAMVAS_PRO_27)))
ctx->retval = -EINVAL;
hid_bpf_release_context(hctx);
--
2.51.1
next prev parent reply other threads:[~2025-11-18 17:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-18 17:16 [PATCH 00/10] HID: bpf: sync up with current udev-hid-bpf programs Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 01/10] HID: bpf: Add support for the Inspiroy 2M Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 02/10] HID: bpf: add support for Huion Kamvas 13 (Gen 3) (model GS1333) Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 03/10] HID: bpf: support for Huion Kamvas 16 Gen 3 Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 04/10] HID: bpf: Add fixup for Logitech SpaceNavigator variants Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 05/10] HID: bpf: Add support for the Waltop Batteryless Tablet Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 06/10] HID: bpf: Add support for the XP-Pen Deco 01 V3 Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 07/10] HID: bpf: Add support for XP-Pen Deco02 Benjamin Tissoires
2025-11-18 17:16 ` [PATCH 08/10] HID: bpf: add heuristics to the Huion Inspiroy 2S eraser button Benjamin Tissoires
2025-11-18 17:16 ` Benjamin Tissoires [this message]
2025-11-18 17:16 ` [PATCH 10/10] HID: bpf: fix typo in HID usage table Benjamin Tissoires
2025-11-20 15:46 ` [PATCH 00/10] HID: bpf: sync up with current udev-hid-bpf programs Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251118-wip-sync-udev-hid-bpf-v1-9-0f8105c54835@kernel.org \
--to=bentiss@kernel.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.hutterer@who-t.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).