Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread Jarkko Sakkinen
On Thu, Mar 27, 2025 at 04:37:13PM +0100, Stefano Garzarella wrote: > On Thu, Mar 27, 2025 at 05:06:53PM +0200, Jarkko Sakkinen wrote: > > On Thu, Mar 27, 2025 at 05:00:11PM +0200, Jarkko Sakkinen wrote: > > > On Thu, Mar 27, 2025 at 10:12:36AM -0400, James Bottomley wrote: > > > > On Thu, 2025-03-

Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread Stefano Garzarella
On Thu, Mar 27, 2025 at 05:06:53PM +0200, Jarkko Sakkinen wrote: On Thu, Mar 27, 2025 at 05:00:11PM +0200, Jarkko Sakkinen wrote: On Thu, Mar 27, 2025 at 10:12:36AM -0400, James Bottomley wrote: > On Thu, 2025-03-27 at 15:23 +0200, Jarkko Sakkinen wrote: > > On Thu, Mar 27, 2025 at 10:58:00AM +0

Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread Stefano Garzarella
On Wed, Mar 26, 2025 at 06:18:38PM +0200, Jarkko Sakkinen wrote: From: Jarkko Sakkinen tpm_ftpm_tee does not require chip->status, chip->cancel and chip->req_canceled. Make them optional. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 31 ---

Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread Jarkko Sakkinen
On Thu, Mar 27, 2025 at 05:00:11PM +0200, Jarkko Sakkinen wrote: > On Thu, Mar 27, 2025 at 10:12:36AM -0400, James Bottomley wrote: > > On Thu, 2025-03-27 at 15:23 +0200, Jarkko Sakkinen wrote: > > > On Thu, Mar 27, 2025 at 10:58:00AM +0100, Stefano Garzarella wrote: > > [...] > > > > > @@ -65,6 +8

Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread Stefano Garzarella
On Thu, Mar 27, 2025 at 03:23:39PM +0200, Jarkko Sakkinen wrote: On Thu, Mar 27, 2025 at 10:58:00AM +0100, Stefano Garzarella wrote: On Wed, Mar 26, 2025 at 06:18:38PM +0200, Jarkko Sakkinen wrote: > From: Jarkko Sakkinen > > tpm_ftpm_tee does not require chip->status, chip->cancel and > chip->

Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread Jarkko Sakkinen
On Thu, Mar 27, 2025 at 10:12:36AM -0400, James Bottomley wrote: > On Thu, 2025-03-27 at 15:23 +0200, Jarkko Sakkinen wrote: > > On Thu, Mar 27, 2025 at 10:58:00AM +0100, Stefano Garzarella wrote: > [...] > > > > @@ -65,6 +89,7 @@ static ssize_t tpm_try_transmit(struct tpm_chip > > > > *chip, void

Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread James Bottomley
On Thu, 2025-03-27 at 15:23 +0200, Jarkko Sakkinen wrote: > On Thu, Mar 27, 2025 at 10:58:00AM +0100, Stefano Garzarella wrote: [...] > > > @@ -65,6 +89,7 @@ static ssize_t tpm_try_transmit(struct tpm_chip > > > *chip, void *buf, size_t bufsiz) > > > ssize_t len = 0; > > > u32 count, ordinal; >

Re: [PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-27 Thread Jarkko Sakkinen
On Thu, Mar 27, 2025 at 10:58:00AM +0100, Stefano Garzarella wrote: > On Wed, Mar 26, 2025 at 06:18:38PM +0200, Jarkko Sakkinen wrote: > > From: Jarkko Sakkinen > > > > tpm_ftpm_tee does not require chip->status, chip->cancel and > > chip->req_canceled. Make them optional. > > > > Signed-off-by:

[PATCH] tpm: Make chip->{status,cancel,req_canceled} opt

2025-03-26 Thread Jarkko Sakkinen
From: Jarkko Sakkinen tpm_ftpm_tee does not require chip->status, chip->cancel and chip->req_canceled. Make them optional. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-interface.c | 31 --- drivers/char/tpm/tpm_ftpm_tee.c | 20 2 fil