]> git.itanic.dy.fi Git - linux-stable/commitdiff
tpm: tpm_tis: Fix UPX-i11 DMI_MATCH condition
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Tue, 8 Aug 2023 09:48:36 +0000 (12:48 +0300)
committerJarkko Sakkinen <jarkko@kernel.org>
Fri, 11 Aug 2023 23:36:28 +0000 (02:36 +0300)
The patch which made it to the kernel somehow changed the
match condition from
DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01")
to
DMI_MATCH(DMI_PRODUCT_VERSION, "UPX-TGL")

Revert back to the correct match condition to disable the
interrupt mode on the board.

Cc: stable@vger.kernel.org # v6.4+
Fixes: edb13d7bb034 ("tpm: tpm_tis: Disable interrupts *only* for AEON UPX-i11")
Link: https://lore.kernel.org/lkml/20230524085844.11580-1-peter.ujfalusi@linux.intel.com/
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis.c

index ac4daaf294a3d7eb0a99377fab7a4463041f15c4..3c0f68b9e44f072e47ff23f80b2657b3c6bda3a1 100644 (file)
@@ -183,7 +183,7 @@ static const struct dmi_system_id tpm_tis_dmi_table[] = {
                .ident = "UPX-TGL",
                .matches = {
                        DMI_MATCH(DMI_SYS_VENDOR, "AAEON"),
-                       DMI_MATCH(DMI_PRODUCT_VERSION, "UPX-TGL"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "UPX-TGL01"),
                },
        },
        {}