Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1924533rdb; Sun, 24 Dec 2023 07:52:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IGigWl9kmdVQRx7WjdQAjOAd85k771/I0noicI5wIVXW5KfUHwNBnNX/4628mEBpiEpIaCL X-Received: by 2002:a05:620a:1103:b0:77f:4e1b:4b05 with SMTP id o3-20020a05620a110300b0077f4e1b4b05mr7253920qkk.66.1703433125651; Sun, 24 Dec 2023 07:52:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703433125; cv=none; d=google.com; s=arc-20160816; b=RB2UpuTgd+nVFssei5725evEzsvXChU50SoHX9GxHmXTUvLCGFtdLAYwunYdyqYxEp F1DJYgB191ceZ6BFp6PEJk0HQY+BwraFvaGoVE0YbmQKGiwyw6kfu84nWtsDgeSPiVRK pbEiRIK0ahRyZpERYdg6EDYsHN0STziIjfgIb0IYbWUi+LOCEWGLEoJ10HIZOYM22RI3 ndElYt6LuQOjJdhNboUT2qIZOkzg2XcLANed8QewvKRvF7BC1251DkgJkr303ZOBGPHR 8tGgsbmWybJYerObyUEweUQoX4QTQwpVyY7hlDhhidNzcsSEHCpkHSzmS8w0MFbruQSW snSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:subject:autocrypt:from :content-language:references:cc:to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=EviEQ2BuQoPRdrEs2nwAH3M+cLPQSNn/nTwXHYXawaE=; fh=j5SVxvT2jMn7AgjAUPzGectyhRlxm6/IZNIiZL/s5hs=; b=TzTfBgxEdgbT5Xy7D/gmNHSjKAOxZXw1JRYa2MgzLx/jc/he9qWML7dMuKiLFp0zXV q5Oxomwam2eovIp9gkyarzHE0YIsLoCPVNtmL6mk28NmACsljqu2SzegDDIcW7UQMBP0 dRwJbsK1A6a1jbK1QFrAN6KJkZLYf+5wa0a7cFNL3JSPmdLdKD764cu4uvU40oSs0X1a s4FM6qDNUlNHVp+jg2WyAUfhnBZVNPPKffMSJ1M6aYz4YRSeiZZX2vIxq7cq0sqjyfWa fcwoi9VL8U8z/sxbGPDzRISwCk98uUn5kLIqRTEXRdEVl4XE/HvB/j2ed4YR8Dicyhsc yCkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=cWzbjlDM; spf=pass (google.com: domain of linux-kernel+bounces-10756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u4-20020a05620a454400b00781477d51a1si949755qkp.583.2023.12.24.07.52.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 07:52:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=cWzbjlDM; spf=pass (google.com: domain of linux-kernel+bounces-10756-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 699A81C215AF for ; Sun, 24 Dec 2023 15:52:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 778A8D282; Sun, 24 Dec 2023 15:51:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="cWzbjlDM" X-Original-To: linux-kernel@vger.kernel.org Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4191C8C4; Sun, 24 Dec 2023 15:51:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Sylrj4khsz9sWt; Sun, 24 Dec 2023 16:51:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1703433093; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=EviEQ2BuQoPRdrEs2nwAH3M+cLPQSNn/nTwXHYXawaE=; b=cWzbjlDMRycWQ9PJ8T4ZVMKHrQBI63u/jRUxfZUDx9gagVNJJ9x58C6CohuN3u//klVCmN lPHGNII5PYv9Jb/n01Pq+k7/mBmf4RssrSlr/70Sxmh4SrF0w42ATKnY8vIWg9lyPDPekh qW9lyahviASxe4hTnrOLYl2HbfufU/VaaNNmopvD+f3nUEg3YsfKvZrxohzLCzEYIlYhhV o7kXeTQ8E94nofdls8xHFa/pLbgi5ryIIT0jXSVAl6WNVv9FLDK6w4+L4eH/PwhssJziON GQOM+zU9a98gjynbgWNuPuq1S/NWlpOZdDvcdz88bLn1hUZypH9JUVKFZhKiHA== Message-ID: Date: Sun, 24 Dec 2023 16:51:30 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To: Mikhail Khvoinitsky Cc: jkosina@suse.com, benjamin.tissoires@redhat.com, iam@valdikss.org.ru, jekhor@gmail.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org References: <3a29c0a6-9b53-433d-a83d-5b68a87c1155@mailbox.org> Content-Language: en-US From: "Uli v. d. Ohe" Autocrypt: addr=u-v@mailbox.org; keydata= xsFNBGCqbBwBEADVWGzbfxJdbLZjlPDq/UoPWwl082hpbj4YYqkPXbDwOhp0i03JLHctEhH0 Ro67Rbxmhea4IDEr1UGkaPhfaSSxLMmR4e+NYOq39Yy8HERSJCEJbhTgzSFm9hFS+gZBPA4R Tp3AWABCDvLm6pWRDELcvZMQe3B3/O5/S3hmZtGOLHEfPdQpidnyHvBwFyqyfYTgXyBinstI siYNj4vW3Hjt05IWW3wd9OMd+CqFa9E0BgKqMjWiACcz/Ejt1ckyr7Dx7wokZSZ8cLAMCHyw R6f/TmHjasrt/99i9bdyoJpCDydMoOAX/+UCju2Xn4qzmPpUw3WhiSE7vGn4kO9kQ1Ai9rtK t9bVhV/W5Tontnn79g91ZPooG5YpEG0Ndf6gvdeK7B62dSQhCzb5D+rFcbuuj7eu6o14bLTo nX3Pb02C13p6D+JlH2AAFYuCcXv98z7bvzQet0EavOfy5rH2Osq2uV70PtFoN2ww6dOKKSqQ qhT2ucoG8lP9fGswQIgwb2ygT95Zb0S2WcYZ9txEx8dWa2gVYzGh9vIfe8aLgda4xME4nKyW Mfsh8WN6wKTBoOllfJFqn8IxF8v8db5O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5F SXumk+WFy1jZGeousOO9qSrMCIhPzW4zxgojwwiNNFhNpck1NB0p2p1pZb4c8BVpAhM4GFpu YGbRmBBYNExHm2php67JlqhrpimGo/8E+D3scs2WLER5jH6NSlJuSGcGkkf6ZZJRD2OQhQYH Gj2Dls7qoqpR+W/qDRESDCqvP4AGIGghohcNLXYJ6CJL1Vp3U4lZu9yr3l2hZFLRRtEBxuEk YcQOzHZ6wrnS8Z4yyOwphPc92Uwl0rc5w+SxR6DEDp7j Subject: Re: [PATCH] HID: lenovo: Restrict detection of patched firmware only to USB cptkbd In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MBO-RS-ID: 542453eb079ead27204 X-MBO-RS-META: 41c6fo1tznu8nfkgo56oisbjjyey7zgx > So this means that the only reliable way is to add a sysfs parameter. > I'll send a patch. Thank you for the quick action! Perhaps it would be possible to modify the firmware further in order to facilitate reliable detection of this modified firmware? But for now the solution with a sysfs parameter (and defaulting to the workaround) seems good. Best regards, Uli