Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2617540rwb; Fri, 11 Nov 2022 12:01:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7iVJui6R5EJFZrIDtwc/tBVt0pVvvKChsL38N6vu4NQCva2/aNjbphkUVSIW+jDRqsRthG X-Received: by 2002:a05:6402:1682:b0:45c:a9d3:d535 with SMTP id a2-20020a056402168200b0045ca9d3d535mr2955130edv.0.1668196881483; Fri, 11 Nov 2022 12:01:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668196881; cv=none; d=google.com; s=arc-20160816; b=gGE+tY4bygZAb1ldLh1mjIobAdO2IEJouI5scrqZjt3AI0HmSJ/LzVIYpqflsvlFQL r9MrAMNweGAm6nWoiB9o/3hhQUTifHpkIL7XmJb0gt2fxRhymJMPJHtbaZJj4LgGOLt6 oNPwwYuuk1ivw5gKs3PHsy+3TdETKdUaudB/kwEIaCSaVL2A+AIsfsk9Iiis+M60F+zQ mTUPLUo3jZLmoZzvqDo4tEbdtKsdaSIsUV3oQCQ+uSSVZJCOEm61f+aw9glVd6b/z3zu mi9VaM5mU7316Bpri8rhMj5MExzVkeNg9557feuqcGAt7dtIZV+ikh8VrwfcNb8ZY9E2 i5Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=HvWIV4rjos1isd7q6hqppdAIDD7LSEl0gzL+KHCMars=; b=FdWPqW0NCFncLgFDWFipgSXX9H2JOW9eP+QtGnJZvw/5VeTt2U/p6YQxiyvbuEuucf qc++5x5O1pPnbpmbMWzA9V7dJzfwPsZRZ5akMpdW4DLAhgqsjwMznoWCRnVwCRVf/4yy ZHeg3cKUNRjwPYq446yi5pcIQwZ9hdIDVrfFhcP1TP/zg6E8VzZ6kXHPgJDpHFKgDEau I4eiwdNi5PMO2cT0liIT4iNbkTv27j+sTdZYYjATOn0bsGWCg3M4gUllKkDD7A97HeNd RMAyTqkFJg4mFSQXherqvdFxbogKSJ39YbshAyBZO6Gow/wMe+EDMSxP0TBRtY+s8++k p9yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=ZykDxtrJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js15-20020a17090797cf00b007ae6869f9d9si3105921ejc.419.2022.11.11.12.00.56; Fri, 11 Nov 2022 12:01:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=s31663417 header.b=ZykDxtrJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmx.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234090AbiKKTqO (ORCPT + 91 others); Fri, 11 Nov 2022 14:46:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233851AbiKKTqM (ORCPT ); Fri, 11 Nov 2022 14:46:12 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77879637C; Fri, 11 Nov 2022 11:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=s31663417; t=1668195958; bh=yIQdbqKmMk0fkcfdZ1ob+a4oeQtt5Pk2MeJErVokxpA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=ZykDxtrJ8EzugdFIPCZHEtHKaixIt3j3ejnbcTgELV5ISMfBRvF/hsNC21ruYTJ1i poRKi+jFbuumhl6Ng2xLj9FCLlMKF7DvQndpMBM5O3IlezT76rLUUQYvn94aCoPhMv BqqG73TLs5rj1U5+5UwL8tiNu0qqmw8NlJrYgYlnIkAkOnxc/VwcKdTf5ogaOZhGW1 AqIZT1LAk/JVQQlMOn28C72N7NvHedpfamkL7lzRH2NWJjlq5sRr4e3HLU/T2x5NF1 zL0FmkttNeb8RFitDMaQYxFL/ggwBYBqyXKIVW3L3dVrKAvdscfMrD6d5X7Va6Mlvo uJlHuoXIEnS4g== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from 9300.fritz.box ([93.221.18.29]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MrQEx-1pMqIr10BL-00oWkI; Fri, 11 Nov 2022 20:45:58 +0100 From: Andreas Bergmeier To: lains@riseup.net, jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] HID: Send SwID in GetProtocolVersion Date: Fri, 11 Nov 2022 20:45:26 +0100 Message-Id: <20221111194526.1375601-1-abergmeier@gmx.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:bjKnsDkSjTyFeheKeU4NmzzGKoiSRrwSuvhF8eUmOTtxxAAWrCy Rx8nYLXkhLhP7PjHjRIPQp60GZXrjAnEMAkNo5APKAdms/8bdMm0AZLO2rgOmwTxlssXK9U SuSM7Z90T2Zwo8pg7XdFckQEsw/lOBzP/k/w1kvTF0v2k44EJTaQAG2fY0EGEBCNQ4pDgbF orq1XJaJ15lgAkhRu/IqQ== UI-OutboundReport: notjunk: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KIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to docs a SwID should be sent for GetProtocolVersion. > 0x10.DeviceIndex.0x00.0x1n where n is SwID Signed-off-by: Andreas Bergmeier =2D-- drivers/hid/hid-logitech-hidpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-h= idpp.c index a0c148a8df6c..964a523c3de7 100644 =2D-- a/drivers/hid/hid-logitech-hidpp.c +++ b/drivers/hid/hid-logitech-hidpp.c @@ -896,7 +896,7 @@ static int hidpp_root_get_protocol_version(struct hidp= p_device *hidpp) ret =3D hidpp_send_rap_command_sync(hidpp, HIDPP_PAGE_ROOT_IDX, - CMD_ROOT_GET_PROTOCOL_VERSION, + CMD_ROOT_GET_PROTOCOL_VERSION | LINUX_KERNEL_SW_ID, ping_data, sizeof(ping_data), &response); if (ret =3D=3D HIDPP_ERROR_INVALID_SUBID) { =2D- 2.34.1