Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp350426lqh; Thu, 28 Mar 2024 04:14:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtFw3IMATNVa6HNifxz/hpqiTGn38iaCXeUK7owKoXYeHVdUDNMLO0hX2aZ7aEoHpPWlhwRSa7u1Ctz3x9D0vI3StDksjkTowvHSKdCA== X-Google-Smtp-Source: AGHT+IHXy/9vRi796ZKK0HgVFPJjX0Xp8RxwSwsr525axRXnD363Gaw449RpKRS+SEf0eOJ22vjG X-Received: by 2002:a19:9117:0:b0:515:9abe:67c0 with SMTP id t23-20020a199117000000b005159abe67c0mr1485018lfd.58.1711624486894; Thu, 28 Mar 2024 04:14:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711624486; cv=pass; d=google.com; s=arc-20160816; b=uTSkGsWo5jFmxE/jUbV8EWec1hrXJE4rdodFGpLt+rfACrrYYIOOQ+ZOAOqlyvxbCq KuI9znDPaMi/q2BqC0XkTyu4DMjTE/ltudojgP3TRrpC186078/IjUhrvpEeAM5tEDYV Nm8C783I9NYAV1s2Jtg0QoMunGIlE6RRAYdAKwQfSrdwx8L//jY6C0Qu3qhW5hqpLDlH RUkqjhq+7wdJ6e5Rqkfb3R+D2B/B8J4PbhxijbIyzxBz8MAqyK/8674uPFe2ekXuwjBA JNy3rvXpOHky1LHrpWsJ1dMIVuR0EM+WO4ZlxL43e8M0PCo6ipiwwPur9VQ43+F0wilP AJ1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=WyBdVLeR0iGztScqRFw42hXy5mWAAq735aD6y6toOHg=; fh=LQwIV0mg7TN3OSWIPagUJ52Re+g3KlABqPFQs/xfI80=; b=iMpteg8jnFRcMP9LEQqjyLqpQNcAdo09jhttS2eoAvRzsqXamyix5R0DlexNshZkxg paaZItHGq3x6+kU+5wck0sAhUBJGE6A2g7/HQ5WZiw0exePLmfimP78IvH8VkxFOgvDd KNXFHMg6H90YUWYTJJj7Z5fUOwMAKEUXyv5qcfMzWNdYBddUfy2nLyxsJNbD9a7RnnS9 4UUKHf/Pa67R1roInsb8WyQ142HDnODBcUIGAxImh0+S2oJh4kND3z3xGKdDq9noFp2d rwQfnoU5wMuVVX1elXGBOg0Ntbh0ISc8hSNtUpUZh6AoQ8xHyUEpic1bdAPdNFPslgCl SrrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@khvoinitsky.org header.s=key1 header.b=Fyl+N1f0; arc=pass (i=1 spf=pass spfdomain=khvoinitsky.org dkim=pass dkdomain=khvoinitsky.org dmarc=pass fromdomain=khvoinitsky.org); spf=pass (google.com: domain of linux-kernel+bounces-122820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=khvoinitsky.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 m16-20020a509310000000b0056b7daed140si632749eda.650.2024.03.28.04.14.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 04:14:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122820-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=@khvoinitsky.org header.s=key1 header.b=Fyl+N1f0; arc=pass (i=1 spf=pass spfdomain=khvoinitsky.org dkim=pass dkdomain=khvoinitsky.org dmarc=pass fromdomain=khvoinitsky.org); spf=pass (google.com: domain of linux-kernel+bounces-122820-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122820-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=khvoinitsky.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 9B16D1F27277 for ; Thu, 28 Mar 2024 11:14:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 586C27D41D; Thu, 28 Mar 2024 11:14:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=khvoinitsky.org header.i=@khvoinitsky.org header.b="Fyl+N1f0" Received: from out-173.mta0.migadu.com (out-173.mta0.migadu.com [91.218.175.173]) (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 9B3FD7E572 for ; Thu, 28 Mar 2024 11:14:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711624472; cv=none; b=r6rBSAy0Gx+6aByPI4cYxXBRWPLoYEieAGjP7TJN7EC8ivWVuEn50H8/hPlShA8gxAWUD4pk8cINrnPijBda7IY9m9AQg5vIijnxlzfxbmgP3DbWGWe+CFMp6THmgQdlVNFFWcF10Ndr17v+fqrU0De9WIr0WdG2a881NB6K5s8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711624472; c=relaxed/simple; bh=ih0F07PnNJ+ccJsZ5jWXyBWyimm8raUL914bms3twsE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=dBuiTnPRwvQvxqtXTBxZLzuXvQVOU26QRyOlcGqcHX+SOBUzme7R6NbavoAxfzkWL/XXkbL+pSD6MVZU3DDSmOqYc4AGhL3lcE5cNZ6B5f9X02ZSMaGv9ndWR3JqAyi7vaUszxAIvWsNC9mc+87IlKEHaAhMjRQuVV7otpJpUPM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=khvoinitsky.org; spf=pass smtp.mailfrom=khvoinitsky.org; dkim=pass (1024-bit key) header.d=khvoinitsky.org header.i=@khvoinitsky.org header.b=Fyl+N1f0; arc=none smtp.client-ip=91.218.175.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=khvoinitsky.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=khvoinitsky.org X-Forwarded-Encrypted: i=1; AJvYcCVW4U0GLmODIhKI3RbPwRUVQWMfZKffME3hCG8PKH227A7x5V0BG9325dqMX6gCJQXaSw93s0JqHxro+NSiAd8KkXKQ8hxMpBH+YR7VhOEpuP2BIXp2nJJ2cPNV7D2LyHnb7YPw DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=khvoinitsky.org; s=key1; t=1711624467; 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: in-reply-to:in-reply-to:references:references; bh=WyBdVLeR0iGztScqRFw42hXy5mWAAq735aD6y6toOHg=; b=Fyl+N1f0YO9MXqnulUPITqDlTH6mLyYzhwkSMRAUew3ScV4yMi5BGekDVqNqN/4pbVeVT1 iviIOdy1hsp09koAF/ppHeLXZKHhpFzB2t0Up+TcP0lIqWTDOR+VEP7pSI5N6SVKedCaiz HBGqwhrZ8uP9P/Lk7Ue0wV46bvXRPUE= X-Gm-Message-State: AOJu0YwZpFLgGjjWaaJHQhd8a+5w00zcU+Me6isJs64JlqCUgnAbYbdi HGGQtCk/BsLZdIEbIoSBRdRfN19Nqnur0W5Ik3LzNbA63zOgKOJdnqA3GS6qbLvBbgRQUNFTnmq jxBssZBOK8N0cWXHyKmLDWDrvRlc= X-Received: by 2002:a19:5e47:0:b0:513:bb6:6966 with SMTP id z7-20020a195e47000000b005130bb66966mr1391855lfi.6.1711624465164; Thu, 28 Mar 2024 04:14:25 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240324234027.1354210-1-sashal@kernel.org> <20240324234027.1354210-128-sashal@kernel.org> In-Reply-To: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Mikhail Khvoinitsky Date: Thu, 28 Mar 2024 13:14:13 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5.10 127/238] HID: lenovo: Add middleclick_workaround sysfs knob for cptkbd To: Pavel Machek Cc: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jiri Kosina Content-Type: text/plain; charset="UTF-8" X-Migadu-Flow: FLOW_OUT Hi, This patch is already on upstream. Unfortunately, previous backports of related commits caused some issues so just skipping this one isn't a good option. For module parameters, while it's quite unrealistic for users to have more than one identical keyboard but with different firmware, this is possible and having a module option would prevent tuning only specific keyboard. For the documentation, makes sense. Sorry, I should have done it together with the change, I'll fix it, thanks for pointing it out. On Thu, 28 Mar 2024 at 12:40, Pavel Machek wrote: > > Hi! > > > From: Mikhail Khvainitski > > > > [ Upstream commit 2814646f76f8518326964f12ff20aaee70ba154d ] > > > > 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. > > Should this go to stable? We have stream of lenovo workarounds, maybe > -stable should wait for upstream to solve this. > > Plus it should really have documentation. > > Oh and we normally solve this stuff with module parameters, so that it > can be fixed during bootup. > > Best regards, > Pavel > > > 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 > > Signed-off-by: Jiri Kosina > > Signed-off-by: Sasha Levin > > -- > DENX Software Engineering GmbH, Managing Director: Erika Unter > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany