Re: [PATCH 7/8] tpm: add sysfs attributes for tpm2

2019-06-14 Thread Jarkko Sakkinen
On Thu, Jun 13, 2019 at 11:09:30AM -0700, Stephen Boyd wrote: > From: Andrey Pronin > > Add sysfs attributes in TPM2.0 case for: > - TPM_PT_PERMANENT flags > - TPM_PT_STARTUP_CLEAR flags > - lockout-related properties > > Signed-off-by: Andrey Pronin > Signed-off-by: Stephen Boyd > --- You

Re: [PATCH 7/8] tpm: add sysfs attributes for tpm2

2019-06-13 Thread Jason Gunthorpe
On Thu, Jun 13, 2019 at 11:09:30AM -0700, Stephen Boyd wrote: > +static ssize_t tpm2_prop_flag_show(struct device *dev, > +struct device_attribute *attr, > +char *buf) > { > - /* XXX: If you wish to remove this restriction, you m