Re: [PATCH v3 2/2] usb: misc: xapea00x: perform platform initialization of TPM

From: David R. Bild <hidden>
Date: 2018-05-14 20:12:25
Also in: linux-usb

On Mon, May 14, 2018 at 3:08 PM, Jason Gunthorpe [off-list ref] wrote:
On Mon, May 14, 2018 at 02:59:36PM -0500, David R. Bild wrote:
quoted
On Mon, May 14, 2018 at 2:31 PM, Jason Gunthorpe [off-list ref] wrote:
 The driver can setup enough to use the TPM
quoted
quoted
framework to send commands before completing registration. We use it
in startup timeouts and other flows today.

That sounds perfect.  Can you point me to some usages in the code (or
relevant functions)?
Well, tpm_tis_core_init() does it

Only the driver that calls tpm_chip_register() gets to use this
capability, so you can't use "tpm_tis_spi" and the automatic binding
if you need it.

Looks like the spi binding and tpm_tis_core_init will need some gentle
editing to allow a SPI based driver the same opportunity.
Thanks for the pointers.  I'll work with Peter to add this capability
for SPI drivers.

Best,
David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help