Input: goodix - workaround Cherry Trail devices with a bogus ACPI Interrupt() resource
authorHans de Goede <hdegoede@redhat.com>
Tue, 1 Mar 2022 06:53:12 +0000 (22:53 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Mar 2022 12:48:44 +0000 (13:48 +0100)
commit720d3f6c2d3f05ebccfe44552919a99221d6d497
tree3f1d625da8b5603bfa0caf71551a5fcb9e6eba78
parent547549b25aea59b4a60c3244a4834e3382ef366d
Input: goodix - workaround Cherry Trail devices with a bogus ACPI Interrupt() resource

[ Upstream commit d982992669733dd75520000c6057d8ee0725a363 ]

ACPI/x86 devices with a Cherry Trail SoC should have a GpioInt + a regular
GPIO ACPI resource in their ACPI tables.

Some CHT devices have a bug, where the also is bogus interrupt resource
(likely copied from a previous Bay Trail based generation of the device).

The i2c-core-acpi code will assign the bogus, non-working, interrupt
resource to client->irq. Add a workaround to fix this up.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=2043960
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220228111613.363336-1-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/goodix.c