Re: [PATCH v3 2/4] tpm: Implement tpm_chip_find() for other subsystems to find a TPM chip

2018-06-22 Thread Jason Gunthorpe
On Fri, Jun 22, 2018 at 04:45:47PM -0400, Stefan Berger wrote: > On 06/22/2018 04:43 PM, Jason Gunthorpe wrote: > >On Fri, Jun 22, 2018 at 12:46:11PM -0400, Stefan Berger wrote: > >>Implement tpm_chip_find() for other subsystems to find a TPM chip and > >>get a reference to that chip. > >> > >>Sign

Re: [PATCH v3 2/4] tpm: Implement tpm_chip_find() for other subsystems to find a TPM chip

2018-06-22 Thread Stefan Berger
On 06/22/2018 04:43 PM, Jason Gunthorpe wrote: On Fri, Jun 22, 2018 at 12:46:11PM -0400, Stefan Berger wrote: Implement tpm_chip_find() for other subsystems to find a TPM chip and get a reference to that chip. Signed-off-by: Stefan Berger drivers/char/tpm/tpm-chip.c | 27

Re: [PATCH v3 2/4] tpm: Implement tpm_chip_find() for other subsystems to find a TPM chip

2018-06-22 Thread Jason Gunthorpe
On Fri, Jun 22, 2018 at 12:46:11PM -0400, Stefan Berger wrote: > Implement tpm_chip_find() for other subsystems to find a TPM chip and > get a reference to that chip. > > Signed-off-by: Stefan Berger > drivers/char/tpm/tpm-chip.c | 27 +++ > include/linux/tpm.h |

[PATCH v3 2/4] tpm: Implement tpm_chip_find() for other subsystems to find a TPM chip

2018-06-22 Thread Stefan Berger
Implement tpm_chip_find() for other subsystems to find a TPM chip and get a reference to that chip. Signed-off-by: Stefan Berger --- drivers/char/tpm/tpm-chip.c | 27 +++ include/linux/tpm.h | 5 + 2 files changed, 32 insertions(+) diff --git a/drivers/char/