Skip to contentSkip to conversation

tpm_tis_spi: Pass in ACPI handle during init

PATCH New Jamie Nguyen 1 participant 1 message Oct 7, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm_tis_spi: Pass in ACPI handle during init

When initializing through tpm_tis_spi_init(), we are always passing in a NULL value for the ACPI handle. Pass in a proper handle so that we are able to take advantages of TPM features that may be described in ACPI, like the Physical Presence Interface (PPI).

---
 drivers/char/tpm/tpm_tis_spi_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/tpm/tpm_tis_spi_main.c +1 -1
index 61b42c83ced8..a5e2e669c3e5 100644
@@ -254,7 +254,7 @@ int tpm_tis_spi_init(struct spi_device *spi, struct tpm_tis_spi_phy *phy,
 
 	phy->spi_device = spi;
 
-	return tpm_tis_core_init(&spi->dev, &phy->priv, irq, phy_ops, NULL);
+	return tpm_tis_core_init(&spi->dev, &phy->priv, irq, phy_ops, ACPI_HANDLE(&spi->dev));
 }
 
 static const struct tpm_tis_phy_ops tpm_spi_phy_ops = {
Signature · 1 line
2.34.1