linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: soc_button_array - Add Lenovo Yoga Tablet2 1051L to the dmi_use_low_level_irq list
@ 2020-12-06 16:12 Hans de Goede
  2020-12-07  6:00 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Hans de Goede @ 2020-12-06 16:12 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Hans de Goede, linux-input

Add the Lenovo Yoga Tablet2 1051L to the list of devices where the
ACPI AML code is poking the GPIO config register directly changing
the IRQ type to a low_level_irq, which we need to work around.

This fixes the home button on the Lenovo Yoga Tablet2 1051L not
working.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/input/misc/soc_button_array.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/input/misc/soc_button_array.c b/drivers/input/misc/soc_button_array.c
index cae1a3fae83a..c5342d7ed28e 100644
--- a/drivers/input/misc/soc_button_array.c
+++ b/drivers/input/misc/soc_button_array.c
@@ -82,6 +82,17 @@ static const struct dmi_system_id dmi_use_low_level_irq[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "One S1003"),
 		},
 	},
+	{
+		/*
+		 * Lenovo Yoga Tab2 1051L, something messes with the home-button
+		 * IRQ settings, leading to a non working home-button.
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "60073"),
+			DMI_MATCH(DMI_PRODUCT_VERSION, "1051L"),
+		},
+	},
 	{} /* Terminating entry */
 };
 
-- 
2.28.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Input: soc_button_array - Add Lenovo Yoga Tablet2 1051L to the dmi_use_low_level_irq list
  2020-12-06 16:12 [PATCH] Input: soc_button_array - Add Lenovo Yoga Tablet2 1051L to the dmi_use_low_level_irq list Hans de Goede
@ 2020-12-07  6:00 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2020-12-07  6:00 UTC (permalink / raw)
  To: Hans de Goede; +Cc: linux-input

On Sun, Dec 06, 2020 at 05:12:45PM +0100, Hans de Goede wrote:
> Add the Lenovo Yoga Tablet2 1051L to the list of devices where the
> ACPI AML code is poking the GPIO config register directly changing
> the IRQ type to a low_level_irq, which we need to work around.
> 
> This fixes the home button on the Lenovo Yoga Tablet2 1051L not
> working.
> 
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>

Applied, thank you.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-07  6:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-06 16:12 [PATCH] Input: soc_button_array - Add Lenovo Yoga Tablet2 1051L to the dmi_use_low_level_irq list Hans de Goede
2020-12-07  6:00 ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).