Re: [tpmdd-devel] [PATCH 1/2 v4] tpm: Factor out common startup code

2016-06-29 Thread Jarkko Sakkinen
On Wed, Jun 29, 2016 at 10:52:38AM +0300, andrew zamansky wrote: > From: Jason Gunthorpe > > The TCG standard startup sequence (get timeouts, tpm startup, etc) for > TPM and TPM2 chips is being open coded in many drivers, move it into > the core code. > >

[tpmdd-devel] [PATCH 2/2] add irq validity check in tpm_i2c_nuvoton driver

2016-06-29 Thread andrew zamansky
if irq==0 (actualy invalid value) then error is printed to dmesg after trying to register to 0 interrupt --- drivers/char/tpm/tpm_i2c_nuvoton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/char/tpm/tpm_i2c_nuvoton.c b/drivers/char/tpm/tpm_i2c_nuvoton.c index

[tpmdd-devel] [PATCH 2/2 v4] tpm: Add TPM 2.0 support to the Nuvoton i2c driver (NPCT6xx family)

2016-06-29 Thread andrew zamansky
From: Jason Gunthorpe The command flow is exactly the same, the core simply needs to be told to enable TPM2 mode when the compatible string indicates a TPM2. Signed-off-by: Andrew Azmansky Signed-off-by: Jason Gunthorpe

[tpmdd-devel] [PATCH 1/2 v4] tpm: Factor out common startup code

2016-06-29 Thread andrew zamansky
From: Jason Gunthorpe The TCG standard startup sequence (get timeouts, tpm startup, etc) for TPM and TPM2 chips is being open coded in many drivers, move it into the core code. tpm_tis and tpm_crb are used as the basis for the core code implementation and the

[tpmdd-devel] (no subject)

2016-06-29 Thread Jason Gunthorpe
Bcc: Subject: Re: [PATCH 2/2 v3] tpm: Add TPM 2.0 support to the Nuvoton i2c driver (NPCT6xx family) Reply-To: In-Reply-To: <1467174493-4190-3-git-send-email-andrew.zaman...@nuvoton.com> On Wed, Jun 29, 2016 at 07:28:13AM +0300, andrew zamansky wrote: > - chip->flags |= TPM_CHIP_FLAG_IRQ;