Re: [PATCH v3 6/7] tpm: Implement state command for Cr50

2022-08-22 Thread Simon Glass
Hi Ilias, On Mon, 22 Aug 2022 at 00:04, Ilias Apalodimas wrote: > > Hi Simon, > > This produces some build warnings e.g > drivers/tpm/cr50_i2c.c: In function ‘cr50_i2c_report_state’: > drivers/tpm/cr50_i2c.c:680:48: warning: passing argument 3 of > ‘tpm2_cr50_report_state’ from incompatible point

Re: [PATCH v3 6/7] tpm: Implement state command for Cr50

2022-08-21 Thread Ilias Apalodimas
Hi Simon, This produces some build warnings e.g drivers/tpm/cr50_i2c.c: In function ‘cr50_i2c_report_state’: drivers/tpm/cr50_i2c.c:680:48: warning: passing argument 3 of ‘tpm2_cr50_report_state’ from incompatible pointer type [-Wincompatible-pointer-types] 680 | ret = tpm2_cr50_report_s

[PATCH v3 6/7] tpm: Implement state command for Cr50

2022-08-19 Thread Simon Glass
Add a vendor-specific TPM2 command for this and implement it for Cr50. Note: This is not part of the TPM spec, but is a Cr50 extension. Signed-off-by: Simon Glass --- (no changes since v1) drivers/tpm/cr50_i2c.c | 117 + include/tpm-v2.h | 54