lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20241007185712.3584468-1-jamien@nvidia.com>
Date: Mon, 7 Oct 2024 11:57:12 -0700
From: Jamie Nguyen <jamien@...dia.com>
To: <peterhuewe@....de>, <jarkko@...nel.org>, <jgg@...pe.ca>,
	<linux-integrity@...r.kernel.org>, <linux-tegra@...r.kernel.org>,
	<linux-kernel@...r.kernel.org>
CC: <kyarlagadda@...dia.com>, Jamie Nguyen <jamien@...dia.com>, Koba Ko
	<kobak@...dia.com>
Subject: [PATCH] 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).

Signed-off-by: Jamie Nguyen <jamien@...dia.com>
Reviewed-by: Koba Ko <kobak@...dia.com>
---
 drivers/char/tpm/tpm_tis_spi_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm_tis_spi_main.c b/drivers/char/tpm/tpm_tis_spi_main.c
index 61b42c83ced8..a5e2e669c3e5 100644
--- a/drivers/char/tpm/tpm_tis_spi_main.c
+++ b/drivers/char/tpm/tpm_tis_spi_main.c
@@ -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 = {
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ