Linux Input Archive on lore.kernel.org
 help / color / Atom feed
From: Mateusz Schyboll <dragonn@op.pl>
To: linux-input@vger.kernel.org
Subject: [PATCH] i8042: asus: ignore PNP detection on lates ROG G14/15 laptops
Date: Sat, 1 Aug 2020 12:33:54 +0200
Message-ID: <defa4aa9-1134-e936-1438-d3c925286ffe@op.pl> (raw)

Recent ASUS laptops (G14 and G15) don't have a PS/2 PNP devices.
Because of that the i8042 module refuses to load when it is build
as external module (for example this is the cause on Arch).
But the module is needed to get asus_nb_wmi loaded, without i8042
it will not load due missing symbols. This is only due a legacy
device Q500 using some i8042 filters in the asus_nb_wmi module.

asus_nb_wmi is need on that devices to get basic fan control
via throttle_thermal_policy.

This patch adds all dmi board name to the i8042_dmi_nopnp_table.
So their users don't have to boot with kernel parameter i8042.nopnp
and have a better out-of-box experience on Linux with listed devices.

Signed-off-by: Mateusz Schyboll <dragonn@op.pl>
---
  drivers/input/serio/i8042-x86ia64io.h | 49 +++++++++++++++++++++++++++
  1 file changed, 49 insertions(+)

diff --git a/drivers/input/serio/i8042-x86ia64io.h 
b/drivers/input/serio/i8042-x86ia64io.h
index 7d7f73702726..55db7e96488d 100644
--- a/drivers/input/serio/i8042-x86ia64io.h
+++ b/drivers/input/serio/i8042-x86ia64io.h
@@ -705,6 +705,55 @@ static const struct dmi_system_id __initconst 
i8042_dmi_nopnp_table[] = {
              DMI_MATCH(DMI_BOARD_VENDOR, "MICRO-STAR INTERNATIONAL CO., 
LTD"),
          },
      },
+    {
+        /* ASUS ROG Zephyreus G14 GA401IH */
+        .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+            DMI_MATCH(DMI_PRODUCT_NAME, "GA401IH"),
+        },
+    },
+    {
+        /* ASUS ROG Zephyreus G14 GA401II */
+        .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+            DMI_MATCH(DMI_PRODUCT_NAME, "GA401II"),
+        },
+    },
+    {
+        /* ASUS ROG Zephyreus G14 GA401IU */
+        .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+            DMI_MATCH(DMI_PRODUCT_NAME, "GA401IU"),
+        },
+    },
+    {
+        /* ASUS ROG Zephyreus G14 GA401IV */
+        .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+            DMI_MATCH(DMI_PRODUCT_NAME, "GA401IV"),
+        },
+    },
+    {
+        /* ASUS ROG Zephyreus G15 GA502II */
+        .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+            DMI_MATCH(DMI_PRODUCT_NAME, "GA502II"),
+        },
+    },
+    {
+        /* ASUS ROG Zephyreus G15 GA502IU */
+        .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+            DMI_MATCH(DMI_PRODUCT_NAME, "GA502IU"),
+        },
+    },
+    {
+        /* ASUS ROG Zephyreus G15 GA502IV */
+        .matches = {
+            DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
+            DMI_MATCH(DMI_PRODUCT_NAME, "GA502IV"),
+        },
+    },
      { }
  };

-- 
2.28.0


                 reply index

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=defa4aa9-1134-e936-1438-d3c925286ffe@op.pl \
    --to=dragonn@op.pl \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux Input Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-input/0 linux-input/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-input linux-input/ https://lore.kernel.org/linux-input \
		linux-input@vger.kernel.org
	public-inbox-index linux-input

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-input


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git