Skip to contentSkip to conversation

tpm: Fix tpm init with no ACPI entry

PATCH In review Derek Basehore 2 participants 3 messages May 8, 2014 TPM device driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tpm: Fix tpm init with no ACPI entry

tpm_add_ppi fails without ACPI support now, but loading the tpm without an ACPI entry is a valid use case. This changes the init of the tpm to not fail when tpm_add_ppi fails.

---
 drivers/char/tpm/tpm-interface.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/char/tpm/tpm-interface.c +1 -2
index 62e10fd..8bfa339 100644
@@ -1094,8 +1094,7 @@ struct tpm_chip *tpm_register_hardware(struct device *dev,
 	if (tpm_sysfs_add_device(chip))
 		goto del_misc;
 
-	if (tpm_add_ppi(&dev->kobj))
-		goto del_misc;
+	tpm_add_ppi(&dev->kobj);
 
 	chip->bios_dir = tpm_bios_log_setup(chip->devname);
 
Signature · 1 line
1.9.1.423.g4596e3a
maintainer
#1 lore raw

Hi Derek,
Is this a regression?
Do you know since when?
Thanks
Peter
---
Sent from my mobile.

#2 lore raw

This is a regression introduced in "ACPI / TPM: match node name instead of full path when searching for TPM device" which was authored on December 19, 2013.

Quoted 7 lines · Peter Huewe

Hi Derek,
Is this a regression?
Do you know since when?
Thanks
Peter
---
Sent from my mobile.