platform/x86: int3472: discrete: Log a warning if the pin-numbers don't match
authorHans de Goede <hdegoede@redhat.com>
Fri, 16 Jun 2023 17:21:32 +0000 (19:21 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Jun 2023 10:39:34 +0000 (12:39 +0200)
commit899c7b18ef01bcc5c01bd9cfbd6ae837bc5aad5b
tree71b33fb91ae65185c09bf21ee4cc5c850db4218a
parent45eaf2e2b8bc9bf4beaa30918a25690ae105a913
platform/x86: int3472: discrete: Log a warning if the pin-numbers don't match

The INT3472 discrete code assumes that the ACPI GPIO resources are
in the same order as the pin-info _DSM entries.

The returned pin-info includes the pin-number in bits 15-8. Add a check
that this matches with the ACPI GPIO resource pin-number in case
the assumption is not true with some ACPI tables.

Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20230616172132.37859-7-hdegoede@redhat.com
drivers/platform/x86/intel/int3472/discrete.c