Re: [PATCH v4 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-10 Thread Jarkko Sakkinen
On Fri, Aug 10, 2018 at 11:05:17AM -0700, Tadeusz Struk wrote: > On 08/10/2018 10:27 AM, Jarkko Sakkinen wrote: > > On Tue, Aug 07, 2018 at 01:27:44PM -0700, Tadeusz Struk wrote: > >> Add a ptr to struct tpm_space to the file_priv to have an easy > >> access to it in the async job without the need

Re: [PATCH v4 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-10 Thread Tadeusz Struk
On 08/10/2018 10:27 AM, Jarkko Sakkinen wrote: > On Tue, Aug 07, 2018 at 01:27:44PM -0700, Tadeusz Struk wrote: >> Add a ptr to struct tpm_space to the file_priv to have an easy >> access to it in the async job without the need to allocate memory. >> This also allows to consolidate of the write ope

Re: [PATCH v4 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-10 Thread Jarkko Sakkinen
On Tue, Aug 07, 2018 at 01:27:44PM -0700, Tadeusz Struk wrote: > Add a ptr to struct tpm_space to the file_priv to have an easy > access to it in the async job without the need to allocate memory. > This also allows to consolidate of the write operations for > the two interfaces. I think the 2nd p

[PATCH v4 1/2] tpm: add ptr to the tpm_space struct to file_priv

2018-08-07 Thread Tadeusz Struk
Add a ptr to struct tpm_space to the file_priv to have an easy access to it in the async job without the need to allocate memory. This also allows to consolidate of the write operations for the two interfaces. Tested-by: Philip Tricca Signed-off-by: Tadeusz Struk --- drivers/char/tpm/tpm-dev-co