Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 253BAC7EE30 for ; Tue, 28 Feb 2023 07:34:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbjB1HeZ (ORCPT ); Tue, 28 Feb 2023 02:34:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjB1HeW (ORCPT ); Tue, 28 Feb 2023 02:34:22 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 807F810AB1; Mon, 27 Feb 2023 23:34:21 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 184EE60FF3; Tue, 28 Feb 2023 07:34:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E89DFC433D2; Tue, 28 Feb 2023 07:34:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1677569660; bh=3BCQtTaoAWxY6XcyC7IK2Ni1ftd1LIYwHPXYAOHigno=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eMXs3aMDccSqN83TVIdJPnk7imTUeC/8STtUztsKGxdg1jQ532YK4qH46ZMTZn77S TOdGQ9WQY1anhHpw/dBZLGprghzwMTvSoZUYn0SwBtShoIsh/rRZeTJR3vdjk/nVFI 78gZctIC8RCRVLE/IYsFQyYXg9z1ga+B8HIL6bFs= Date: Tue, 28 Feb 2023 08:34:17 +0100 From: Greg KH To: Werner Sembach Cc: dmitry.torokhov@gmail.com, swboyd@chromium.org, hdegoede@redhat.com, mkorpershoek@baylibre.com, chenhuacai@kernel.org, wsa+renesas@sang-engineering.com, tiwai@suse.de, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] Input: atkbd - Make it possible to apply atkbd.reset via kernel quirk Message-ID: References: <20230227185907.569154-1-wse@tuxedocomputers.com> <20230227185907.569154-2-wse@tuxedocomputers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230227185907.569154-2-wse@tuxedocomputers.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 27, 2023 at 07:59:06PM +0100, Werner Sembach wrote: > atkbd.reset was only a command line parameter. Some devices might have a > known bug that can be worked around by just permanently applying this > quirk. > > This patch adds the ability to do this on the kernel level for known buggy > devices. > > Signed-off-by: Werner Sembach > Cc: stable@vger.kernel.org > --- > drivers/input/keyboard/atkbd.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c > index 246958795f60..ef65c46c4efe 100644 > --- a/drivers/input/keyboard/atkbd.c > +++ b/drivers/input/keyboard/atkbd.c > @@ -1731,6 +1731,12 @@ static int __init atkbd_deactivate_fixup(const struct dmi_system_id *id) > return 1; > } > > +static int __init atkbd_reset_fixup(const struct dmi_system_id *id) > +{ > + atkbd_reset = true; > + return 1; Why is this returning 1? Who calls this? And this should be a per-device attribute, not a global one, right? thanks, greg k-h