Re: [PATCH v6 4/6] tpm: of: Make of-tree specific function commonly available

2022-07-20 Thread Nageswara R Sastry
m.com; Nageswara R Sastry; m...@ellerman.id.au; Stefan > Berger; Jarkko Sakkinen; Jason Gunthorpe; Rob Herring; Frank Rowand > Subject: [PATCH v6 4/6] tpm: of: Make of-tree specific function commonly > available > Simplify tpm_read_log_of() by moving reusable parts of the code into &

Re: [PATCH v6 4/6] tpm: of: Make of-tree specific function commonly available

2022-07-12 Thread Stefan Berger
On 7/11/22 18:04, Mimi Zohar wrote: Hi Stefan, On Thu, 2022-07-07 at 13:20 -0400, Stefan Berger wrote: - /* -* For both vtpm/tpm, firmware has log addr and log size in big -* endian format. But in case of vtpm, there is a method called -* sml-handover which is

Re: [PATCH v6 4/6] tpm: of: Make of-tree specific function commonly available

2022-07-11 Thread Mimi Zohar
Hi Stefan, On Thu, 2022-07-07 at 13:20 -0400, Stefan Berger wrote: > - /* > -* For both vtpm/tpm, firmware has log addr and log size in big > -* endian format. But in case of vtpm, there is a method called > -* sml-handover which is run during kernel init even before

[PATCH v6 4/6] tpm: of: Make of-tree specific function commonly available

2022-07-07 Thread Stefan Berger
Simplify tpm_read_log_of() by moving reusable parts of the code into an inline function that makes it commonly available so it can be used also for kexec support. Call the new of_tpm_get_sml_parameters() function from the TPM Open Firmware driver. Signed-off-by: Stefan Berger Cc: Jarkko Sakkinen