Skip to contentSkip to conversation

tpm: Revert tpm_tis_spi_mod.ko to tpm_tis_spi.ko.

PATCH In review Jarkko Sakkinen 3 participants 6 messages Feb 5, 2020 – Feb 9, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: Revert tpm_tis_spi_mod.ko to tpm_tis_spi.ko.

Revert tpm_tis_spi_mod.ko back to tpm_tis_spi.ko as the rename could break the build script. This can be achieved by renaming tpm_tis_spi.c as tpm_tis_spi_main.c. Then tpm_tis_spi-y can be used inside the makefile.

Cc Andrey Pronin <[email protected]>
Cc Stephen Boyd <[email protected]>
Fixes 797c0113c9a4 ("tpm: tpm_tis_spi: Support cr50 devices")
---
 drivers/char/tpm/Makefile                              | 8 +++++---
 drivers/char/tpm/{tpm_tis_spi.c => tpm_tis_spi_main.c} | 0
 2 files changed, 5 insertions(+), 3 deletions(-)
 rename drivers/char/tpm/{tpm_tis_spi.c => tpm_tis_spi_main.c} (100%)
drivers/char/tpm/Makefile +5 -3
index 5a0d99d4fec0..9567e5197f74 100644
@@ -21,9 +21,11 @@ tpm-$(CONFIG_EFI) += eventlog/efi.o
 tpm-$(CONFIG_OF) += eventlog/of.o
 obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o
 obj-$(CONFIG_TCG_TIS) += tpm_tis.o
-obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi_mod.o
-tpm_tis_spi_mod-y := tpm_tis_spi.o
-tpm_tis_spi_mod-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
+
+obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o
+tpm_tis_spi-y := tpm_tis_spi_main.o
+tpm_tis_spi-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
+
 obj-$(CONFIG_TCG_TIS_I2C_ATMEL) += tpm_i2c_atmel.o
 obj-$(CONFIG_TCG_TIS_I2C_INFINEON) += tpm_i2c_infineon.o
 obj-$(CONFIG_TCG_TIS_I2C_NUVOTON) += tpm_i2c_nuvoton.o
drivers/char/tpm/tpm_tis_spi_main.c renamed from drivers/char/tpm/tpm_tis_spi.c +0 -0
similarity index 100%
rename from drivers/char/tpm/tpm_tis_spi.c
rename to drivers/char/tpm/tpm_tis_spi_main.c
Signature · 1 line
2.20.1
#1 lore raw

drivers/char/tpm/tpm_tis_spi_main.c

Quoted 39 lines · Jarkko Sakkinen

Revert tpm_tis_spi_mod.ko back to tpm_tis_spi.ko as the rename could break the build script. This can be achieved by renaming tpm_tis_spi.c as tpm_tis_spi_main.c. Then tpm_tis_spi-y can be used inside the makefile.

Cc Andrey Pronin <[email protected]>
Cc Stephen Boyd <[email protected]>
Fixes 797c0113c9a4 ("tpm: tpm_tis_spi: Support cr50 devices")
---
  drivers/char/tpm/Makefile                              | 8 +++++---
  drivers/char/tpm/{tpm_tis_spi.c => tpm_tis_spi_main.c} | 0
  2 files changed, 5 insertions(+), 3 deletions(-)

rename drivers/char/tpm/{tpm_tis_spi.c => tpm_tis_spi_main.c} (100%)

drivers/char/tpm/Makefile +5 -3
index 5a0d99d4fec0..9567e5197f74 100644
@@ -21,9 +21,11 @@ tpm-$(CONFIG_EFI) += eventlog/efi.o
  tpm-$(CONFIG_OF) += eventlog/of.o
  obj-$(CONFIG_TCG_TIS_CORE) += tpm_tis_core.o
  obj-$(CONFIG_TCG_TIS) += tpm_tis.o
-obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi_mod.o
-tpm_tis_spi_mod-y := tpm_tis_spi.o
-tpm_tis_spi_mod-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
+
+obj-$(CONFIG_TCG_TIS_SPI) += tpm_tis_spi.o
+tpm_tis_spi-y := tpm_tis_spi_main.o
+tpm_tis_spi-$(CONFIG_TCG_TIS_SPI_CR50) += tpm_tis_spi_cr50.o
+
  obj-$(CONFIG_TCG_TIS_I2C_ATMEL) += tpm_i2c_atmel.o
  obj-$(CONFIG_TCG_TIS_I2C_INFINEON) += tpm_i2c_infineon.o
  obj-$(CONFIG_TCG_TIS_I2C_NUVOTON) += tpm_i2c_nuvoton.o
drivers/char/tpm/tpm_tis_spi_main.c renamed from drivers/char/tpm/tpm_tis_spi.c +0 -0
similarity index 100%
rename from drivers/char/tpm/tpm_tis_spi.c
rename to drivers/char/tpm/tpm_tis_spi_main.c

Works for me, thank you very much :)

Alexander

#2 lore raw
Quoted 1 line · Alexander Steffen

Works for me, thank you very much :)

Apologies for having bad judgement with this in the first place :-)

I'll send another PR for the next kernel release as soon as v5.6-rc1 is out.

/Jarkko

Reviewed-by on v1 1/1
#3 lore raw
In reply to Jarkko Sakkinen

Quoting Jarkko Sakkinen (2020-02-05 12:38:18)

Quoted 2 lines

Revert tpm_tis_spi_mod.ko back to tpm_tis_spi.ko as the rename could break the build script. This can be achieved by renaming tpm_tis_spi.c as

Do you mean userspace scripts?

Quoted 9 lines

tpm_tis_spi_main.c. Then tpm_tis_spi-y can be used inside the makefile.

Cc Andrey Pronin <[email protected]>
Cc Stephen Boyd <[email protected]>
Fixes 797c0113c9a4 ("tpm: tpm_tis_spi: Support cr50 devices")

---

#4 lore raw
Quoted 5 lines · Stephen Boyd

Quoting Jarkko Sakkinen (2020-02-05 12:38:18)

Quoted 2 lines

Revert tpm_tis_spi_mod.ko back to tpm_tis_spi.ko as the rename could break the build script. This can be achieved by renaming tpm_tis_spi.c as

Do you mean userspace scripts?

Yes. I'll fix the commit message before merging.

Thanks for the review.

/Jarkko

#5 lore raw
Quoted 10 lines · Jarkko Sakkinen
Quoted 5 lines · Stephen Boyd

Quoting Jarkko Sakkinen (2020-02-05 12:38:18)

Quoted 2 lines

Revert tpm_tis_spi_mod.ko back to tpm_tis_spi.ko as the rename could break the build script. This can be achieved by renaming tpm_tis_spi.c as

Do you mean userspace scripts?

Yes. I'll fix the commit message before merging.

Thanks for the review.

The commit message is now fixed in my master:

git://git.infradead.org/users/jjs/linux-tpmdd.git

I also added your and Alexander's tags.

I'll send a PR after rc1 is out. Thank you.

/Jarkko