Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp656854lqh; Fri, 31 May 2024 12:09:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWh8nZTfjkB6BpZUAJmJmVyGkWN/Pm+XUVUG6dI7Zug40TNpc4cGBMSKVtW4dCQsz380argy3uVitOkZyxH8DlJIjVE4YfP+Dzflx/pTA== X-Google-Smtp-Source: AGHT+IGB/B9zlp/9Cd3le8gMZ8SQ1OebZXndrmTeYqZwsojaQL44SXxvR0dlUPmaip0VoHDyDoHe X-Received: by 2002:a05:6e02:198c:b0:374:58b3:f734 with SMTP id e9e14a558f8ab-3748b9a4a76mr31432895ab.8.1717182568826; Fri, 31 May 2024 12:09:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717182568; cv=pass; d=google.com; s=arc-20160816; b=fj/Pu7HvUtQWLEzhMp93AdshtYPFJ2KZPiAcljbxpltu6Tgu5q2yw0wKQ2hZdUoYDf vq4e7akUmUdpBB03dlp2P+MlZzkbUijYI/pM2UOpE2qznK5mIh6u7SJI683UNbErQqo8 OlZrrvqQ74VFFEbIJbou12oF9rBUkQkeoBA1dy6EO5OqqaHfCQyo3eELrIBIdaTedVuS MuinSXatb/24CTkithBnIxYnzAv8X+7rfVuzIq1E8mlcvKcXOPLvyh7u9ZzVv6PSQ6kq ib624/NPkAZSrFfNUL7ikIAQ28Fokj3RFnlzBq8hH/39Z6wB2z59YYRWPALmgdqbtVzu cEbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=/4Myp7qRRyEiJWWXAhhgpF8f+0Gn/l7SMdWnV4P4Vyc=; fh=Zn/xIjpnzZjSGgHungAZU0XCYiuXYOW6aNUEDVPvlQY=; b=rG1PV2FeE7jH5hljbK3vSJ4qlQYf4YeKID+ukXyVny3EqeCpRhkTIrBjKn5tTjgH+z q2m748WcSp9Ug99CtSFjNOb4Pxf/2tgH0rBxofRHUe+MfulPFYuYfX5lTcHqkqwvnSws +dsQa1DWjJ7raAgcDAhXrSKpmEx4T2OmFPRdKJlPGLw029yQILR1paZ+0vGtb+YlB5QU CR8Dnc1+Rb2Bq3s47WPz0+2rAHNMVzYpa4mFYT4yslEn1JCgkipWwiKvRjTJvM5yrRUF P3RjaoWKJpcaQIOQJMGL5SXI5biQ9504D0N/Xq7fwlaaCv2wMO9S894WCNWrf4Hgt/kJ 2IqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@math.uni-bielefeld.de header.s=default header.b=s6PRNz2a; arc=pass (i=1 spf=pass spfdomain=math.uni-bielefeld.de dkim=pass dkdomain=math.uni-bielefeld.de dmarc=pass fromdomain=math.uni-bielefeld.de); spf=pass (google.com: domain of linux-kernel+bounces-197334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uni-bielefeld.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c745898bf8si168242a12.583.2024.05.31.12.09.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 12:09:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@math.uni-bielefeld.de header.s=default header.b=s6PRNz2a; arc=pass (i=1 spf=pass spfdomain=math.uni-bielefeld.de dkim=pass dkdomain=math.uni-bielefeld.de dmarc=pass fromdomain=math.uni-bielefeld.de); spf=pass (google.com: domain of linux-kernel+bounces-197334-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197334-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=uni-bielefeld.de 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 73D8B28982C for ; Fri, 31 May 2024 19:09:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E315A17C223; Fri, 31 May 2024 19:09:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=math.uni-bielefeld.de header.i=@math.uni-bielefeld.de header.b="s6PRNz2a" Received: from smtp1.math.uni-bielefeld.de (smtp1.math.uni-bielefeld.de [129.70.45.10]) (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 5989880604; Fri, 31 May 2024 19:09:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.70.45.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717182560; cv=none; b=e+7jrrLeLxE3eC+TIGWqHbygTHBV9JgtTtqg94jJCnAz4rJ8l1x2BXfESExJblj3Wu88Fy78WR7XAnlhnalbDmCkdr5jgEuQFPBmtvL5bFmzP8OVJTcPcUT/qnSgo7Ja1/7ZmvOJ1Dr3amODFMVbLR2esmNTocnj9TDqG5Qg4TM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717182560; c=relaxed/simple; bh=f6oyVa4CF+Atx2Os6W1pYW+SHbV4+5PZDkBbDDgOlAE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r40dhGHzpsxfQeUPET2ExC3VNp1UBVRoXXP1lNz7l+Vd88Vwsvk+Wu/sKiIlk/QpkMTh2JjTmwrTN3xXGRMGhuhmdSUv9lVCQjjtPROi+SFzinM4AYpu72XMAv71w1uVK9Db7Vj5ly5Fw9dTgu09ip4CFhVEmdo6Pv8m0acN+qo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=math.uni-bielefeld.de; spf=pass smtp.mailfrom=math.uni-bielefeld.de; dkim=pass (2048-bit key) header.d=math.uni-bielefeld.de header.i=@math.uni-bielefeld.de header.b=s6PRNz2a; arc=none smtp.client-ip=129.70.45.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=math.uni-bielefeld.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=math.uni-bielefeld.de Received: from localhost (dslb-088-074-203-220.088.074.pools.vodafone-ip.de [88.74.203.220]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by smtp1.math.uni-bielefeld.de (Postfix) with ESMTPSA id 867DA6014D; Fri, 31 May 2024 21:01:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.uni-bielefeld.de; s=default; t=1717182069; bh=f6oyVa4CF+Atx2Os6W1pYW+SHbV4+5PZDkBbDDgOlAE=; h=From:To:Cc:Subject:Date:From; b=s6PRNz2aHjg5896ke3uhntALQDyhSz99QfC1B91xOm1j62oXnSrWYhuujaM5PPULS 6IhG04FI9qC5TGvkMkwrduu2ONlkGbTlqtFymZu+LJNKGtnNg20AwnXAWcXfc5MwsY JK6JXPnIJU0Re522Auaoujm+MiD3LEvfju9oFDHESqnpBKoFVHFS4s5m7L7PA0evcS sWvbF9vGPhKcF8feELZGs1rssjjCFrVv4C0qLdRFTQ4bWJaika122wWJh8Wlfej37U fzjso3cOx0HR/HEOP4pxhkSvEiHJHe8xoj6Kh44N+mLY4sfBy8VjdXzbGs93N9lVMu Xd5A4T6lWTFew== From: tjakobi@math.uni-bielefeld.de To: Dmitry Torokhov Cc: Tobias Jakobi , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: i8042 - add Ayaneo Kun to i8042 quirk table Date: Fri, 31 May 2024 21:00:59 +0200 Message-ID: <20240531190100.3874731-1-tjakobi@math.uni-bielefeld.de> X-Mailer: git-send-email 2.44.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Tobias Jakobi See the added comment for details. Also fix a typo in the quirk's define. Signed-off-by: Tobias Jakobi --- drivers/input/serio/i8042-acpipnpio.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/i8042-acpipnpio.h b/drivers/input/serio/i8042-acpipnpio.h index dfc6c581873b..0a7388985622 100644 --- a/drivers/input/serio/i8042-acpipnpio.h +++ b/drivers/input/serio/i8042-acpipnpio.h @@ -76,7 +76,7 @@ static inline void i8042_write_command(int val) #define SERIO_QUIRK_PROBE_DEFER BIT(5) #define SERIO_QUIRK_RESET_ALWAYS BIT(6) #define SERIO_QUIRK_RESET_NEVER BIT(7) -#define SERIO_QUIRK_DIECT BIT(8) +#define SERIO_QUIRK_DIRECT BIT(8) #define SERIO_QUIRK_DUMBKBD BIT(9) #define SERIO_QUIRK_NOLOOP BIT(10) #define SERIO_QUIRK_NOTIMEOUT BIT(11) @@ -1332,6 +1332,19 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = { .driver_data = (void *)(SERIO_QUIRK_NOMUX | SERIO_QUIRK_RESET_ALWAYS | SERIO_QUIRK_NOLOOP | SERIO_QUIRK_NOPNP) }, + { + /* + * The Ayaneo Kun is a handheld device where some the buttons are handled by an + * AT keyboard. The keyboard is usually detected as raw, but sometimes, usually + * after a cold boot, it is detected as translated. + * Make sure that the keyboard is always in raw mode. + */ + .matches = { + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYANEO"), + DMI_MATCH(DMI_BOARD_NAME, "KUN"), + }, + .driver_data = (void *)(SERIO_QUIRK_DIRECT) + }, { } }; @@ -1655,7 +1668,7 @@ static void __init i8042_check_quirks(void) if (quirks & SERIO_QUIRK_RESET_NEVER) i8042_reset = I8042_RESET_NEVER; } - if (quirks & SERIO_QUIRK_DIECT) + if (quirks & SERIO_QUIRK_DIRECT) i8042_direct = true; if (quirks & SERIO_QUIRK_DUMBKBD) i8042_dumbkbd = true; -- 2.44.1