[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171117002105.GD4276@ziepe.ca>
Date: Thu, 16 Nov 2017 17:21:05 -0700
From: Jason Gunthorpe <jgg@...pe.ca>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Peter Huewe <peterhuewe@....de>,
Andrey Pronin <apronin@...omium.org>,
Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>,
linux-integrity@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] tpm: Add explicit chip->ops locking for sysfs
attributes.
On Thu, Nov 16, 2017 at 01:40:54PM -0800, Guenter Roeck wrote:
> Add explicit chip->ops locking for all sysfs attributes.
> This lets us support those attributes on tpm2 devices.
>
> Signed-off-by: Guenter Roeck <linux@...ck-us.net>
> v2: It makes sense to actually compile the code.
>
> drivers/char/tpm/tpm-chip.c | 4 --
> drivers/char/tpm/tpm-sysfs.c | 127 ++++++++++++++++++++++++++++++++-----------
> 2 files changed, 94 insertions(+), 37 deletions(-)
I haven't exhaustively checked this, but as the originator of the
comment, this looks broadly like the right approach to me.
Cheers,
Jason
Powered by blists - more mailing lists