Re: [PATCH v6] tpm: Add Upgrade/Reduced mode support for TPM2 modules

From: Jarkko Sakkinen
Date: Thu Sep 30 2021 - 12:31:43 EST


On Thu, 2021-09-30 at 19:28 +0300, Jarkko Sakkinen wrote:
> static inline bool tpm_is_firmware_upgrade(void)
> {
> return chip->flags & TPM_CHIP_FLAG_FIRMWARE_UPGRADE_MODE;
> }

Ugh, here's refined and fixed version:

static inline bool tpm_in_firmware_mode(struct tpm_chip *chip)
{
return chip->flags & TPM_CHIP_FLAG_FIRMWARE_MODE;
}

/Jarkko