From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796066742; b=CaE9h1yKv3M4371RaO+Zd5N2dNaICAJ/NUPjts83xS5MQRh1yJixlmHXy/i9q2VxK8mt tJSFFqzPCpC+g5U1+u1+AlstQr8hRCzapEoFanTLI3xtoGco3KG82yTWYClkfp19A0MMW eIaAkT4cQQ2q0S5ZN/OuuYlbPTZdpT41KjehyCNEo/n1uZCvBLFXlCqiiDM+zn5G1jCvw L+Pv6aoQA/jSKfmBBTNCbklIknXU9vTpBCe4Qk3mdPgMGrpaoZVSe53GHPllYJPqNuqVV gxUBGn/ML529Zbq3CH0LElzK59F8DBgzU8D6Y2EAqTn53w6+z0XFWoy4hSuR61RBT2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796066742; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=FwTItI6MAlIj81XotCIOgsaFqMyXJWdZCvwmmbvhnN4=; b=MiJ2k9E45Qo7OiYytilcBHWP1oLRkY6R5rtvZ8OzXt/NmhqcJqpn0Kf2QYtOzuu506VW /ud9qdlWFnU6KX1e2M68NrBobOVnYSN/n3LbstZ8eyDyR/j8FIGlNh/1yuIwNC2QUkKDF Q8nTo6fV7usCSL6OrJ5V9n/UKkmYayRw6znJsNRSD+//qs8tMPehC/9xQMqQCed7LhOw4 MF1XG4uQ+rBjHmkiHuvoNX49SSPNZE9eutEb7aZbAx7Riz6LSE+nWcBeKGFoTrV7pzCkM DOvT4dpHKcHU1aoGlTuZrWg87Jq6A91H3YYw53hIHGriM44OA4IX9FHdNEraLTWu2Hg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=googlemail.com; spf=pass smtp.mailfrom=googlemail.com; dkim=pass header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20260707 header.b=cHU5g7we; arc=none smtp.remote-ip=209.85.221.44 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7FD2606A31C for ; Mon, 30 Nov 2026 19:25:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7FD2606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=googlemail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20260707 header.b=cHU5g7we Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-4a358881793so5797834f8f.0 for ; Mon, 30 Nov 2026 11:25:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20260707; t=1796066740; x=1796671540; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=FwTItI6MAlIj81XotCIOgsaFqMyXJWdZCvwmmbvhnN4=; b=cHU5g7wemzFqoSZgv+zk7JNmtegdpHe0CUtLZvu8c6MLZsbRy32j4hXrEpiTOD+RKI bBA3dF+mo4BTg308LMNzCdZ+XfWCYfKsQEum7Tqrlpx62XD31MCpq0mVeZ/m3HCH+AO1 tTMw08EP5TpP2uDX/JXcwgH1xofS+0II2d++Q64XubmIGPDvlNdRYNbwud1zNzesQ3XN 3ZWCpF/MLfXfsRCqcC0120riYDP2EAm6ZpDYs9wTCqx8T6GXdZLj1xsKTGulg7aqNVUa lg2w4Zv3vG0pt9/r3BT7AmLdkeuaKfRpyFvaepNVCGGDBUqpJqSEvg4x1J57tRV00ABV KDBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796066740; x=1796671540; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=FwTItI6MAlIj81XotCIOgsaFqMyXJWdZCvwmmbvhnN4=; b=lqBUCwBx8AH9O7qYMIwrS26l2V9A90VNT3REtrvr05FdQo5AIYZOBHpPuM9H6Wd+0r XoIz5HZgX8G22Ne07YA0xXuH5EP+MbjANaLddIi1u9efbqj0p6X7amq8qy0Mr9g0CqBL q7tqDeuKdBmoGCTsMMyHq+DXiMtST0OJzAQ7SsjdOUyiiaw9IdxHx0bQuqApRlHWL8ZW oqRODSGMDL29G/sUHHUpfTOtkuZL+wXfk73ercopUSd49qMgKOtPXqQmUiJmF/kR3S3E Ro389bYmdWvncV6gebZd0kwROvRpGLbXAXyCLBGlhUR+3q7gLK7MLzKEnHeIIWAPxmla ypDQ== X-Gm-Message-State: APuU4Z8HCXZtNFiy4aAn3scjYgVuagVwZOCMJtxRBxxLUyIeyxr778vR nShREvJ0G/QJpFnQR6bObTA3vjhVEE3aV9Iwe8K7At5wuXgOxmiZI6aMtepLm8O1eEo= X-Gm-Gg: AZFdTZdbG6nSMBYt2zqBCwBWJYvsKUwHlYGAMKUIkbO5x+yCK7MUjkkwTiwSjnGGw/E oer2af0AEBCRgDl+0DlwmGtYniEVSdBiVerkWcbGEmyER6z1GBgSrBwA5h9yuNFqqsnFM8pYsc/ +6eoN/E3f96TjdA02Uui+9j5uFpFIL3aKKtAPW90xlMh94DKcOUrYwAz6pq99cosDuiLbpf3B3T R4G7Y/+azgdLHtLIYeQPlaMJ4MhqHI3gAenbkCyBRFVNXgGE94G1CkUjml2qez3ME5s1RyZIXA2 lIMzzvzm6jReYQCUrxCSENnBYl+bV3dWnxwSGtHEVy/PaANswxjpHKjlJa/BX/URTmO79uHC9BV wPUKWczEhxO35RtB3swwAqcwlPofJsrvwLB8OQHrBKk/4px45zJgNMV82nSesEyHkWFqE9M4LSN 1Lb4K/k+DcPIQiH4efIEakzrJw4VS5wn4VZSCGrcwgMUXsLdtNNBEtBCYEa4LP07rj2MyrqJfcY psjHP5we9FzqWnbN5NGR/vEsnupukC8t3rfmhexRF3cU0kqs8zKefz2uI2HUWKOJo0hNL0PkHl+ giu7nnjtZDjDQyeXGg0FsmGe7TDOqkgR4YG7ilyvD6A2lqR9V+PfKPbIvQ== X-Received: by 2002:a05:6000:2f87:b0:4a6:bc53:246b with SMTP id ffacd0b85a97d-4abb5144ebdmr66792036f8f.30.1796066740112; Mon, 30 Nov 2026 11:25:40 -0800 (PST) Received: from sp8 (213-146-237-228.ptr.skytron.de. [213.146.237.228]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab65cb4341sm65688773f8f.4.2026.11.30.11.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 11:25:39 -0800 (PST) From: Sebastian To: linux-bluetooth@vger.kernel.org Cc: Sebastian Subject: [PATCH 0/2] Read the PnP ID before creating the uHID device Date: Mon, 30 Nov 2026 20:25:19 +0100 Message-ID: <20261130192521.246374-1-seb.witt@googlemail.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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