All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carlos Garnacho <carlosg@gnome.org>
To: platform-driver-x86@vger.kernel.org
Cc: Carlos Garnacho <carlosg@gnome.org>, hdegoede@redhat.com
Subject: [PATCH] platform/x86: intel-vbtn: Allow switch events on Acer Switch Alpha 12
Date: Tue,  1 Dec 2020 14:57:27 +0100	[thread overview]
Message-ID: <20201201135727.212917-1-carlosg@gnome.org> (raw)

This 2-in-1 model (Product name: Switch SA5-271) features a SW_TABLET_MODE
that works as it would be expected, both when detaching the keyboard and
when folding it behind the tablet body.

It used to work until the introduction of the allow list at commit
8169bd3e6e193 ("platform/x86: intel-vbtn: Switch to an allow-list for
SW_TABLET_MODE reporting"). Add this model to it, so the Virtual Buttons
device announces the EV_SW features again.

Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
---
 drivers/platform/x86/intel-vbtn.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c
index f5901b0b07cd..d8114983498b 100644
--- a/drivers/platform/x86/intel-vbtn.c
+++ b/drivers/platform/x86/intel-vbtn.c
@@ -206,6 +206,12 @@ static const struct dmi_system_id dmi_switches_allow_list[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "HP Stream x360 Convertible PC 11"),
 		},
 	},
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Switch SA5-271"),
+		},
+	},
 	{} /* Array terminator */
 };
 
-- 
2.29.2


             reply	other threads:[~2020-12-01 13:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-01 13:57 Carlos Garnacho [this message]
2020-12-02 12:10 ` [PATCH] platform/x86: intel-vbtn: Allow switch events on Acer Switch Alpha 12 Hans de Goede

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=20201201135727.212917-1-carlosg@gnome.org \
    --to=carlosg@gnome.org \
    --cc=hdegoede@redhat.com \
    --cc=platform-driver-x86@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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.