Skip to content

Commit 2b72104

Browse files
committed
Merge tag 'tpmdd-next-20200217' of git://git.infradead.org/users/jjs/linux-tpmdd
Pull tpm fixes from Jarkko Sakkinen: "Two bug fixes" * tag 'tpmdd-next-20200217' of git://git.infradead.org/users/jjs/linux-tpmdd: tpm: Initialize crypto_id of allocated_banks to HASH_ALGO__LAST tpm: Revert tpm_tis_spi_mod.ko to tpm_tis_spi.ko.
2 parents 6551d5c + dc10e41 commit 2b72104

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

drivers/char/tpm/Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ tpm-$(CONFIG_EFI) += eventlog/efi.o
2121
tpm-$(CONFIG_OF) += eventlog/of.o
2222
obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o
2323
obj-$(CONFIG_TCG_TIS) += tpm_tis.o
24-
obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi_mod.o
25-
tpm_tis_spi_mod-y := tpm_tis_spi.o
26-
tpm_tis_spi_mod-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
24+
25+
obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o
26+
tpm_tis_spi-y := tpm_tis_spi_main.o
27+
tpm_tis_spi-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
28+
2729
obj-$(CONFIG_TCG_TIS_I2C_ATMEL) += tpm_i2c_atmel.o
2830
obj-$(CONFIG_TCG_TIS_I2C_INFINEON) += tpm_i2c_infineon.o
2931
obj-$(CONFIG_TCG_TIS_I2C_NUVOTON) += tpm_i2c_nuvoton.o

drivers/char/tpm/tpm2-cmd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,8 @@ static int tpm2_init_bank_info(struct tpm_chip *chip, u32 bank_index)
525525
return 0;
526526
}
527527

528+
bank->crypto_id = HASH_ALGO__LAST;
529+
528530
return tpm2_pcr_read(chip, 0, &digest, &bank->digest_size);
529531
}
530532

File renamed without changes.

0 commit comments

Comments
 (0)