From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.49 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796071587; b=i34mj2vtrJ3t3kNNdvo0KBPGAMcLYw85KFgyPcvOl8XYTSwuw6PV9ztjjRMT+jSXmyGu t9m9cHrAqltu1MtCLP3fgwOFt9lJNiV6rRKLrxtmXT29WhtPK740R7FrZgn17eQ/wuTbn HNdN1NKMGSWlyASirOB99/2ZJVKDQbWvOKutkPgjDjhZ1wv3s6po8qPiQ9bTqONmBR6k0 BCCRo//zivcZXSw4Y4vWNyhpxQsplJb9n4vnarFEMNgJ+KDmeZSRcVr+wRx9SqFspIMYJ gxyH0PCLj/5Eao9qQKtrmOda7dz+jj897WxZTqw990Ov7U91JnWKI55CViMZ8R4mkeQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796071587; 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:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=4MZxx0pZu+QjDcqMzismskgOh2QULkSzkto8+PzyjIY=; b=KhHGbMV2TGBU4lywUa4yOLQWMeCnfSGtD9Tmu3lszQEUpc1rQMRwlopVnXm+/gF3Z9d9 mabNAOjQCLQRAatHE5GfYglS+uEzYv/JkBdIhsCfHEcT0zMuGOGF2yWfO/v4xoElox70o 5BAkcCyEJx7C7BLi4r8YjQPaLIrsDHU3OdpYCFZ/uJm+MY7MNogCyqKkGsVoEUBkkwl+D iFUcNvM5hF0WR2unahh8ZjJDNn7i0lQLEmEJ2hv9Vwy8F0xUMETcK1vk8omUmblitACDp 6nmty3AAFv5N8e4BveP5hAAMEHTwchJj6xfnk8mpDF08iSmqXnZD4ffh7114kuj7mAQ== 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=cR6UvYDL; arc=none smtp.remote-ip=209.85.128.49 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 748A7606A31A for ; Mon, 30 Nov 2026 20:46:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 748A7606A31A 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) header.d=googlemail.com header.i=@googlemail.com header.a=rsa-sha256 header.s=20260707 header.b=cR6UvYDL Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4a5b2be99a8so85845755e9.2 for ; Mon, 30 Nov 2026 12:46:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20260707; t=1796071586; x=1796676386; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=4MZxx0pZu+QjDcqMzismskgOh2QULkSzkto8+PzyjIY=; b=cR6UvYDLXUaky6+SiPoSuA5SHKd+76qz/rrZNAQKxXAkifFEGbV5ieedhZNclc/ZC1 fAjCUjkneJ9yZx6dPPWZZlWUipMBD2rTxbsIvdsF7NwLHOtD7O4y4N40VMvs8uHVj8Pn fNmvz/ERcMRMyoLMN7HUrYdYOsL/bVopJ3JhXCj2x9QMS++CJdwdcRL9mUBl3+klpkLw b1LJKFHuUEaoAa4Y1RnfqN36x6/WOGG7ZNbcUVRhuIlKz34jUlMrf8EBd20cunTn0NWg VBeInirwp09X4SBOHttn8e5P2eYxePhr7aL7cVLR/VjKXhvyzBwvUym9w9RTG4hpVcp2 2+Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796071586; x=1796676386; h=content-transfer-encoding:mime-version:references:in-reply-to :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=4MZxx0pZu+QjDcqMzismskgOh2QULkSzkto8+PzyjIY=; b=qbZVuWARLZ4PQ7C6fzNMvRVo3d/27DH8ApgGWr72GRn7SQlVCJzHxNklusc/kCgysQ zSoG5EboZT0UsXdq9ffKKrCoS0URPiyAeBXE3SUIjgjQ4bj0jCBmBwnCy5LU4C76OLGq IydqGnmEASLUktg6bhuZVqA9J/FzOldlPV0CISLOLJNc/l3UUhzRKQzl/1cyjY1otaXi 4XyI4dlJpuhQMtiBlEz5TfT/bUguYIojugEZj2BPn2w8PomHeEQ3gYeh8mTNVcZ8QAQY IH3aBSdyLOHA4pFLlnfKKwxPsTiIunkX882YKRFn6ZrOr3/y6ats7Jqtz7kvIRD03HRv ZLBg== X-Gm-Message-State: APuU4Z9gooGbF3QmmnbIfO+2GW9hcSoK1wUWsNoE1GsPy4Bs8x6ukCMd AQKQPpEHMCHs22jR4Ers9v4L9zvf8vonB3mCgzA6y7xQ5phR2LB2PZE04r9+bdlcvzI= X-Gm-Gg: AZFdTZeLlN8/0CmmBQKAlpJ9/LUviFcobvxW2pdx6W0tj0pC9Ww07OodzjDcM4yZRBU eENzpyygOZ48HQj2fv2PrsXNkeaef3uRfNUzSc8blB4Enzt7wzxMhKtV3K6DaRVBeZ+IUomXcXB lUBIiX3LooObyuzmCywW/zbFUBhJ5v5X/qOVoEtbc7o6XATNziwPvQ/dlphO7JNZ9JT96ejl/WH SVTZPu6zpCJZQnCGZ7gUQvHuE+hgpiqLszbkiuY9skcb24jR1iKINU/iJ8f6CLLsnaoDQp9Pnii yLnbXunwxW+1SCotZhxqJWNALZFqiBJLpPNKHX3liI1ogAYhWiYAN81aYeIILy+w2pejCEkfGe+ 5hlQeIlOnYlptwO9hB5TZFV/O/dixVReftUpHoYGAMh3QHr08qoNpwPgWgzr8Q20ptteZGhIrv8 S9zLHc+hqeagLETbO/tPUxOjCVXn4ERUYhv4gGOQ0guUkGV/Btb88N7Cweup4bdEf7qRd75o3AC afemsen5qzajDEDCHHKNMAQHdfokXrpWZJH4nDlGWvLKEwx74xVEwV/WrsHSkzaX5Ul4/2OsIcP dPw+q3EHekoHP72ciGF2NIsVREU2mvU8TBC2tL7mT04dANlt2ERw5Vn+Z9ykzrJhwkBkSrbDrqK w40w= X-Received: by 2002:a05:600c:a115:b0:4bb:a5e1:74ac with SMTP id 5b1f17b1804b1-4bba5e195bcmr287828015e9.4.1796071585571; Mon, 30 Nov 2026 12:46:25 -0800 (PST) Received: from sp8 (213-146-237-228.ptr.skytron.de. [213.146.237.228]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a680483sm67435844f8f.28.2026.11.30.12.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 12:46:25 -0800 (PST) From: Sebastian To: linux-bluetooth@vger.kernel.org Cc: Sebastian Subject: [PATCH v2 0/4] Accept HoG Report Map longer than 512 octets Date: Mon, 30 Nov 2026 21:45:52 +0100 Message-ID: <20261130204556.357834-1-seb.witt@googlemail.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: References: 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, HID over GATT devices with a Report Map longer than 512 octets no longer work: the Report Map is truncated, the kernel fails to parse it and no input device is created. Several keyboards and touchpads are affected, see https://github.com/bluez/bluez/issues/2814. Mine, an Inateck KB05113, sends 637 octets. As discussed, accepting them is now controlled by a LongReportMap option in a new [Input] section of main.conf, enabled by default and disabled when Testing is, so the limit is enforced for qualification. shared/hog itself keeps reading at most 512 octets unless told otherwise with bt_hog_set_long_report_map. The default depends on Testing as set from main.conf or with -T, as parse_input runs after both; without any main.conf the option keeps its default of true. I took [Input] to mean a new section of main.conf, like [AVRCP], rather than one in input.conf; I can move it there if you prefer. v2: - Add the LongReportMap option to [Input] in main.conf - Keep the 512 octet limit by default in shared/hog, add bt_hog_set_long_report_map - Rebase on master Sebastian (4): shared/gatt-client: Add bt_gatt_client_read_long_value_max_len main.conf: Add LongReportMap option to [Input] shared/hog: Add bt_hog_set_long_report_map input/hog: Accept Report Map longer than 512 octets profiles/input/hog.c | 8 ++++++-- src/btd.h | 5 +++++ src/main.c | 20 +++++++++++++++++++ src/main.conf | 7 +++++++ src/shared/gatt-client.c | 40 +++++++++++++++++++++++++++++++++---- src/shared/gatt-client.h | 7 +++++++ src/shared/hog.c | 43 ++++++++++++++++++++++++++++++++++++---- src/shared/hog.h | 5 +++++ 8 files changed, 125 insertions(+), 10 deletions(-) -- 2.56.1