char: tpm: cr50: Set TPM_FIRMWARE_POWER_MANAGED based on device property
authorRob Barnes <robbarnes@google.com>
Mon, 6 Dec 2021 12:03:09 +0000 (12:03 +0000)
committerJarkko Sakkinen <jarkko@kernel.org>
Sat, 8 Jan 2022 22:18:45 +0000 (00:18 +0200)
commit5887d7f4a8c4310a75ca45f576f26b3d21250881
treed11efa64319337d24c318a7205873aa62cc0210b
parent7d30198ee24f2ddcc4fefcd38a9b76bd8ab31360
char: tpm: cr50: Set TPM_FIRMWARE_POWER_MANAGED based on device property

Set TPM_FIRMWARE_POWER_MANAGED flag based on 'firmware-power-managed'
ACPI DSD property. For the CR50 TPM, this flag defaults to true when
the property is unset.

When this flag is set to false, the CR50 TPM driver will always send
a shutdown command whenever the system suspends.

Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_tis_i2c_cr50.c
drivers/char/tpm/tpm_tis_spi_cr50.c