Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2691241rdb; Tue, 26 Dec 2023 01:36:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IESDH4JHs1efiSD/Phk3Q3VzD+O/6bGEpN8gzB5nkgGPbjVp4sPuQ4QKlqko49sqos+eEKg X-Received: by 2002:a05:6808:1389:b0:3b5:75ad:5b73 with SMTP id c9-20020a056808138900b003b575ad5b73mr9034668oiw.13.1703583396013; Tue, 26 Dec 2023 01:36:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703583395; cv=none; d=google.com; s=arc-20160816; b=q/HnVIoZEjEtmOWflONAiO+uG54dwaXdsTx1icSQEahudGSOEsrYh+xrDi7QrdZmfu g6eFeMAWZwtVcVNNZLFLUqW1TQPreiTE9ZDCCm/exYAo/pWgstb9yFUvsJvk3/6bBrFe FfrA5tJeVUiQHFxRIZkK2n5sQgXYsluenN7J82JSY1//RkCzgKL1ty4oIsNSYEUeZAhE i5MvMMz2a0/1Awvudsc2ZtXl/fvVep0J/FpQbyBBvpj98RzXr3m+V2TCszD/faQiLcfk EZvpRea2q5tV60/SaMB/f1Khk00u2wzim+kmwM87RvQNCXhS7b+ab77y+3R2TL7Den0N OapQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=yERtguE0Vl3cpYZcE+wHqk9HF/THyUQ0hqDgNB7OQnc=; fh=g11u8J4y6W93ULpfijJoP4yj62qFroXuTwMDUwYhicA=; b=1FWU/4IT9e9D0DLaISY8nYSv5T2pDe/xtRsHxg+w7uHumVpe06k4gtYS4xcZQuOwK6 K2c7eeJuGMMG2jQdAlFo1BbRYUFLzQZjps1S8kv/hY0ZLOQh3upfodv7EvfXXCFOC6UG 2IeqWkeY+qQOXGEWtHWV+T39F7R+ww3pcRpGC5NWoLkwGL4iZAPxLuYkbHWn0fw9bbFN 0vKx/IuSR7iqYSWKnDBdqYe+0gcgiHlG7JWRQZdVxihULqUjA2ICODEXVIyxDK7al6Zn MZv2LhWiHSuz2wOe446fE512j18goRHNb3//yTJ6De8A+TUl10LAqwbLW43dAs6SFAOz ipgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Sq9yM59e; spf=pass (google.com: domain of linux-kernel+bounces-11442-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id k9-20020a170902c40900b001d3735ea525si9377263plk.478.2023.12.26.01.36.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 01:36:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11442-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Sq9yM59e; spf=pass (google.com: domain of linux-kernel+bounces-11442-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11442-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 70D61282E99 for ; Tue, 26 Dec 2023 09:36:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80BC74D11A; Tue, 26 Dec 2023 09:36:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Sq9yM59e" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E3DE1096F; Tue, 26 Dec 2023 09:36:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a2358a75b69so737023266b.1; Tue, 26 Dec 2023 01:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703583384; x=1704188184; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yERtguE0Vl3cpYZcE+wHqk9HF/THyUQ0hqDgNB7OQnc=; b=Sq9yM59epvzRw7jKCQEf26oq42D1JsH+Y1ZuiZqKxesQutqaJooRDpDMMd/9ipxYYv OAdq3QYh4npTruXJerxeg5cnXVJHTk5i1iN9/V5l53tZPo8i5x7DoC+duRGSVftO7jLq jZRhjGnRNXPps0mYyLLgBda3wfDxjvqcW/h7jkn/136db9VGN5OAR7Oixx/tS665WVIa /lO38DwbKcbipDPOXZREEYuD3U2r56l8WaSx8YYruwhtbKY4cPx+9JqTzxnnLrmpEq08 /56c0b0XSCaVOketho8ZG/IeAyzGRA7BIOrjeeFTzGgeWqZVOEF1seMEmzj0aJgSp+jz kHJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703583384; x=1704188184; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yERtguE0Vl3cpYZcE+wHqk9HF/THyUQ0hqDgNB7OQnc=; b=HiMCvjqBV9vFODJtMCkvSOuzQxEtUgz4f3X7EYalQhogE647nE1mSK5DidHdWJ5eoJ hOD+zwFTVJU51YYXw4fgdED+Zdnlktd+JqNQJhEoB5yYmD0AVo+AZWbwAAshF+wg5LnL ITDV5gcrWKlf/nA9vjW36GnhTTNNz8wVMwXi7w3RzXTp3vpauMaI6P8FHhTYNC3zw/wp X/ihzbEC08eZ7VuztEKRZlgBhUuFTOPvU9i77MBB0YQIaEgrbqngAoSnoBFyykNR2Dzu 5cDy0xLgLidqeSHmSAKnQ6Pa5UE2lAvBl9zJ6/72ulG4AdGAfSEoX1BFCbOEc0XXYoOe mtPg== X-Gm-Message-State: AOJu0YzSm0Q3mkgA8wEWNcOqEDST0j5zSCvVyzXhQW8JpyTd5frwT9Dn cXFX3auWT9FdX5CkeK+YFnUA2t4LOv5oUVYzxPw= X-Received: by 2002:a17:906:57c1:b0:a23:54aa:311b with SMTP id u1-20020a17090657c100b00a2354aa311bmr7499942ejr.34.1703583384105; Tue, 26 Dec 2023 01:36:24 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <3a29c0a6-9b53-433d-a83d-5b68a87c1155@mailbox.org> In-Reply-To: From: Yauhen Kharuzhy Date: Tue, 26 Dec 2023 12:36:05 +0300 Message-ID: Subject: Re: [PATCH] HID: lenovo: Restrict detection of patched firmware only to USB cptkbd To: "Uli v. d. Ohe" Cc: Mikhail Khvoinitsky , jkosina@suse.com, benjamin.tissoires@redhat.com, iam@valdikss.org.ru, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=81, 24 =D0=B4=D0=B5=D0=BA. 2023=E2=80=AF=D0=B3. =D0=B2 18:51, Uli= v. d. Ohe : > > > 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. Unfortunately no, the firmware is closed-source and was patched in binary form AFAIR (by replacing 1-2 instructions). Moreover, it cannot be updated in the wireless version of the keyboard (ThinkPad Compact Keyboard II). > > Best regards, > Uli --=20 Yauhen Kharuzhy