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