From: Jamie Nguyen <jamien@nvidia.com>
To: <peterhuewe@gmx.de>, <jarkko@kernel.org>, <jgg@ziepe.ca>,
<linux-integrity@vger.kernel.org>, <linux-tegra@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Cc: <kyarlagadda@nvidia.com>, Jamie Nguyen <jamien@nvidia.com>,
Koba Ko <kobak@nvidia.com>
Subject: [PATCH] tpm_tis_spi: Pass in ACPI handle during init
Date: Mon, 7 Oct 2024 11:57:12 -0700 [thread overview]
Message-ID: <20241007185712.3584468-1-jamien@nvidia.com> (raw)
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@nvidia.com>
Reviewed-by: Koba Ko <kobak@nvidia.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
reply other threads:[~2024-10-07 18:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241007185712.3584468-1-jamien@nvidia.com \
--to=jamien@nvidia.com \
--cc=jarkko@kernel.org \
--cc=jgg@ziepe.ca \
--cc=kobak@nvidia.com \
--cc=kyarlagadda@nvidia.com \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=peterhuewe@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome