* [PATCH] tpm: Fix tpm init with no ACPI entry
@ 2014-05-08 0:31 Derek Basehore
2014-05-08 6:09 ` Peter Huewe
0 siblings, 1 reply; 3+ messages in thread
From: Derek Basehore @ 2014-05-08 0:31 UTC (permalink / raw)
To: Peter Huewe
Cc: Ashley Lai, Marcel Selhorst, tpmdd-devel, linux-kernel, Derek Basehore
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.
Signed-off-by: Derek Basehore <dbasehore@chromium.org>
---
drivers/char/tpm/tpm-interface.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
index 62e10fd..8bfa339 100644
--- a/drivers/char/tpm/tpm-interface.c
+++ b/drivers/char/tpm/tpm-interface.c
@@ -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);
--
1.9.1.423.g4596e3a
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] tpm: Fix tpm init with no ACPI entry
2014-05-08 0:31 [PATCH] tpm: Fix tpm init with no ACPI entry Derek Basehore
@ 2014-05-08 6:09 ` Peter Huewe
2014-05-08 6:20 ` dbasehore .
0 siblings, 1 reply; 3+ messages in thread
From: Peter Huewe @ 2014-05-08 6:09 UTC (permalink / raw)
To: Derek Basehore; +Cc: Ashley Lai, Marcel Selhorst, tpmdd-devel, linux-kernel
Hi Derek,
Is this a regression?
Do you know since when?
Thanks
Peter
---
Sent from my mobile.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tpm: Fix tpm init with no ACPI entry
2014-05-08 6:09 ` Peter Huewe
@ 2014-05-08 6:20 ` dbasehore .
0 siblings, 0 replies; 3+ messages in thread
From: dbasehore . @ 2014-05-08 6:20 UTC (permalink / raw)
To: Peter Huewe; +Cc: Ashley Lai, Marcel Selhorst, tpmdd-devel, linux-kernel
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.
On Wed, May 7, 2014 at 11:09 PM, Peter Huewe <peterhuewe@gmx.de> wrote:
> Hi Derek,
> Is this a regression?
> Do you know since when?
> Thanks
> Peter
> ---
> Sent from my mobile.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-08 6:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-08 0:31 [PATCH] tpm: Fix tpm init with no ACPI entry Derek Basehore
2014-05-08 6:09 ` Peter Huewe
2014-05-08 6:20 ` dbasehore .
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.