[Skiboot] [PATCH 3/8] TPM/TSS: Register TPM chip for further use within TSS

Mauro S. M. Rodrigues maurosr at linux.vnet.ibm.com
Fri Apr 3 03:52:06 AEDT 2020


TSS will know which device and transmit handler to use through this
registration.

Signed-off-by: Mauro S. M. Rodrigues <maurosr at linux.vnet.ibm.com>
---
 libstb/drivers/tpm_i2c_nuvoton.c | 1 +
 1 file changed, 1 insertion(+)

diff --git libstb/drivers/tpm_i2c_nuvoton.c libstb/drivers/tpm_i2c_nuvoton.c
index 9a26fca65d..9d3ff82e0a 100644
--- libstb/drivers/tpm_i2c_nuvoton.c
+++ libstb/drivers/tpm_i2c_nuvoton.c
@@ -608,6 +608,7 @@ void tpm_i2c_nuvoton_probe(void)
 			free(tpm_device);
 			continue;
 		}
+		tss_tpm_register(tpm_device, &tpm_i2c_nuvoton_driver);
 		bus = i2c_find_bus_by_id(tpm_device->bus_id);
 		assert(bus->check_quirk == NULL);
 		bus->check_quirk = nuvoton_tpm_quirk;
-- 
2.25.1



More information about the Skiboot mailing list