From: Sebastian <seb.witt@googlemail.com>
To: linux-bluetooth@vger.kernel.org
Cc: Sebastian <seb.witt@googlemail.com>
Subject: [PATCH 0/2] Read the PnP ID before creating the uHID device
Date: Mon, 30 Nov 2026 20:25:19 +0100 [thread overview]
Message-ID: <20261130192521.246374-1-seb.witt@googlemail.com> (raw)
Since 5.88, on the first connection after pairing a HID over GATT
device, the uHID device is created with vendor and product 0000:0000,
as the PnP ID hasn't been read by the deviceinfo plugin yet. Drivers
and quirks matching the device then don't apply until it reconnects.
hog-lib read the PnP ID itself before creating the uHID device, this
series does the same in shared/hog.
Seen with an Inateck KB05113 keyboard: right after pairing it was
created as 0005:0000:0000, after reconnecting as 0005:3373:7713. The
series is independent of "Accept HoG Report Map longer than 512
octets", and applies with or without it.
Sebastian (2):
shared/hog: Read the PnP ID before creating the uHID device
unit/test-hog: Add test for the PnP ID
src/shared/hog.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++
unit/test-hog.c | 67 +++++++++++++++++++++++++++++++++++++++---
2 files changed, 139 insertions(+), 4 deletions(-)
--
2.56.1
next reply other threads:[~2026-11-30 19:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 19:25 Sebastian [this message]
2026-11-30 19:25 ` [PATCH 1/2] shared/hog: Read the PnP ID before creating the uHID device Sebastian
2026-11-30 19:39 ` Luiz Augusto von Dentz
2026-11-30 19:25 ` [PATCH 2/2] unit/test-hog: Add test for the PnP ID Sebastian
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=20261130192521.246374-1-seb.witt@googlemail.com \
--to=seb.witt@googlemail.com \
--cc=linux-bluetooth@vger.kernel.org \
/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