Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp387904rdb; Tue, 23 Jan 2024 02:56:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFFCRfxkWITojazIGQXwz5gPoVm5YIOaiK2GjtUBkeC4gRVl1t6ajyja+pM44S5DzhyRKC2 X-Received: by 2002:a17:906:fb0d:b0:a30:3ba:dae9 with SMTP id lz13-20020a170906fb0d00b00a3003badae9mr1901ejb.77.1706007387458; Tue, 23 Jan 2024 02:56:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706007387; cv=pass; d=google.com; s=arc-20160816; b=crIPzUNuQ5NIe3dtR0QTqHYv871NL6cIGjz4Mf8wtGFgPXFEU/pow3g3Xsw/5EYcIr mY4rtTlvqgy9dyw5BqXukO0vVI3x8zlfwcmB4rgARmz5ZDE65hWYc3xxfm18PoxeQL9u v2dkLuCV1z76wGL8fbfLnp1yWCZHh7Aabnje0FYjfigg1vYRZk6Rdmg0bRBBp3se/OGV nunrC2WTHoH+55spHAhaOOEIkY2O9lwd0AEL2UHlAf7JpadWsR1UBalUR/p2Oo6WvTnn njsIIPuXTOUbuTMOujPeotxGNSxUiOSo5KsnNLsUEPElc4YNVz9wimhpcEJXI+N3RNue Vziw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=sU3TMp6F1Li6CwRy3zvh7Die/7aGEUocH8eXGXp67+M=; fh=Bfk2wgq2lOq7JTVU5NqfaVKcy2zG/pxJeQd69bGcHfA=; b=TVAYw9qncq89FLdRbI581A7Av6u5jwS+y5aQAzm+YEKfXFoC6GKHc6WjWGLeY39e5N 4rXYcaDgEsLgMBuCNQq4BzWbPJCgfg2kHbHh3zXIjEZrSHLDWZnyZom/m12c0GswyvYY CA5c42GXNXxzDBJdB2jNk3TzZHJT5hs3HRTVvB5EkSggNy1DUWx5kpTb855srXmcU5NV 3hKN/lvUmCQWkItARTjlGlj3jJ2F7ehPk2ltJzoCfZ3GNHdaJGXOr2OrrTEJAXdA4D8m iepzejPK2jrFcDiwwnWOgTeokQCQ+z7j95/lv4z3Oiz0GSZ2GDGeY/B73BXHfXJzb/zX vCnw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=INbUVT4T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a17-20020a17090640d100b00a30adbf6ecesi820814ejk.454.2024.01.23.02.56.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 02:56:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=INbUVT4T; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35134-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35134-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9013B1F22030 for ; Tue, 23 Jan 2024 10:56:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59B2B5C910; Tue, 23 Jan 2024 10:55:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="INbUVT4T" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7CAC348CE4; Tue, 23 Jan 2024 10:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706007358; cv=none; b=tz+wqbWHkK/u1KnFBYetb+lF0O4n/J0fF9r68UP/feWUY3OyE0hLKOH4gDo5J31AnKlNMPP8YKsQViz3MhXMKTQBShQv7RRU+wIwrseq3l58zc7YGr8m08dfNsB/tI+jkcQqWi+YCHSzE+InoVhx9qTyF7YRYajZ0DGUnoFhg6Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706007358; c=relaxed/simple; bh=4tsL23ghaEQEaT2bq2YzzgROa1LghxVl/vUgPgfSGjk=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=SCqOxflR0EAH2lUvfR2dYBgumeJ2aaD38zcQpii7lEVFjWFztIqpFdmLsnkjJqonrVCUXuvnaT9u9tlXOHxIHSAh9s/8ZFvRo592oG3aPJhmZ1MXWP3t1kC9M4hmKUBUha6FQ334OBIXvvdJjEy+RiUqJbByP/cKbgyo2oDilqw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=INbUVT4T; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A36A0C433C7; Tue, 23 Jan 2024 10:55:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706007358; bh=4tsL23ghaEQEaT2bq2YzzgROa1LghxVl/vUgPgfSGjk=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=INbUVT4TOo/bB4RTGM/M9Ew6RjGLp7arfUjRaP7TWHjkxi7/pPLGwre3bg/wrGzb4 sjfwQIUPqwTNZKOmXtuLQ3St1YhhmewT0k21fkNuZDLriMnsaohlGPHxB+0ynDF4Oz kqPtUFS6d4vEfVIWLoKIoaDyvvLD7QVaWPI0DU063Fgf0fKxAqwav/saDHH7xS0POc 5thnsJ34QEYuHvSTadpNTy6TF8Xafv7uMHgaC0MYmIuzYC5IC6v7ZiuLUVoNDFRRYs gXYk5AKuqwYK/nBYZ5zXsObSU4h81DBuUQ5PRYZO3PKvKOe/BcJlKaaz16hKNa1TZY d4vsa9diE6L9g== Date: Tue, 23 Jan 2024 11:55:58 +0100 (CET) From: Jiri Kosina To: Mikhail Khvainitski cc: Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, iam@valdikss.org.ru, jekhor@gmail.com, u-v@mailbox.org Subject: Re: [PATCH] HID: lenovo: Add middleclick_workaround sysfs knob for cptkbd In-Reply-To: <20231223191401.70727-1-me@khvoinitsky.org> Message-ID: References: <20231223191401.70727-1-me@khvoinitsky.org> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Sat, 23 Dec 2023, Mikhail Khvainitski wrote: > Previous attempt to autodetect well-behaving patched firmware > introduced in commit 46a0a2c96f0f ("HID: lenovo: Detect quirk-free fw > on cptkbd and stop applying workaround") has shown that there are > false-positives on original firmware (on both 1st gen and 2nd gen > keyboards) which causes the middle button click workaround to be > mistakenly disabled. > > This commit adds explicit parameter to sysfs to control this > workaround. > > Fixes: 46a0a2c96f0f ("HID: lenovo: Detect quirk-free fw on cptkbd and stop applying workaround") > Fixes: 43527a0094c1 ("HID: lenovo: Restrict detection of patched firmware only to USB cptkbd") > Signed-off-by: Mikhail Khvainitski I am not a huge fan of sysctl device-specific knobs like this, but I guess this is the best we can get here, unfortunately. Now applied, thanks a lot. -- Jiri Kosina SUSE Labs