All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Read the PnP ID before creating the uHID device
@ 2026-11-30 19:25 Sebastian
  2026-11-30 19:25 ` [PATCH 1/2] shared/hog: " Sebastian
  2026-11-30 19:25 ` [PATCH 2/2] unit/test-hog: Add test for the PnP ID Sebastian
  0 siblings, 2 replies; 5+ messages in thread
From: Sebastian @ 2026-11-30 19:25 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Sebastian

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-30 23:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 19:25 [PATCH 0/2] Read the PnP ID before creating the uHID device Sebastian
2026-11-30 19:25 ` [PATCH 1/2] shared/hog: " Sebastian
2026-11-30 19:39   ` Luiz Augusto von Dentz
2026-11-30 23:39   ` bluez.test.bot
2026-11-30 19:25 ` [PATCH 2/2] unit/test-hog: Add test for the PnP ID Sebastian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.