summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2026-09-01 16:37:22 -0500
committerJarkko Sakkinen <jarkko@kernel.org>2026-09-02 01:57:50 +0300
commit22a50c3745c5ca2927300a26ca2d09dd6ce71b0e (patch)
treed8ec4b59ef0028005346b3abb0e4affd95bda28f /scripts/Makefile.thinlto
parented89dd98a21da7c1fd02b1d755aaead93d323a68 (diff)
downloadlinux-next-22a50c3745c5ca2927300a26ca2d09dd6ce71b0e.tar.gz
linux-next-22a50c3745c5ca2927300a26ca2d09dd6ce71b0e.zip
tpm: Call cmd_ready/go_idle for each command transmission
Some TPM implementations, particularly fTPM using the CRB interface, require the TPM to transition through idle and ready states for each command rather than once per session. The current implementation calls cmd_ready once during tpm_chip_start() and go_idle once during tpm_chip_stop(). For fTPM, when multiple commands are sent without per-command idle transitions, subsequent commands timeout as the TPM is waiting for the transition. Fix this by calling cmd_ready before each command and go_idle on all exit paths in tpm_try_transmit(). For TPM implementations that don't require per-command transitions, the callbacks return immediately based on the start method. Remove the now-redundant per-session calls from tpm_chip_start() and tpm_chip_stop() along with their helpers. This resolves timeout errors during TPM initialization on systems where BIOS has already performed TPM startup. Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://lore.kernel.org/r/20260901213723.3017371-1-mario.limonciello@amd.com Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions