From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 03/19] tpm: add support for TPMv2 SPI modules
Date: Tue, 24 Apr 2018 15:02:30 +0200 [thread overview]
Message-ID: <20180424150230.111687ae@xps13> (raw)
In-Reply-To: <CAPnjgZ35zXPFDfWfsid+4MV-iqWqPZ_YGuaPz8OwOv3=CsgBpA@mail.gmail.com>
Hi Simon,
On Fri, 30 Mar 2018 06:41:52 +0800, Simon Glass <sjg@chromium.org>
wrote:
> Hi Miquel,
>
> On 29 March 2018 at 15:43, Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> > Add the tpm_tis_spi driver that should support any TPMv2 compliant (SPI)
> > module.
> >
> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> > ---
> > drivers/tpm/Kconfig | 9 +
> > drivers/tpm/Makefile | 1 +
> > drivers/tpm/tpm_tis.h | 3 +
> > drivers/tpm/tpm_tis_spi.c | 656 ++++++++++++++++++++++++++++++++++++++++++++++
> > 4 files changed, 669 insertions(+)
> > create mode 100644 drivers/tpm/tpm_tis_spi.c
>
> I think this came up in another context. Would it make sense to create
> a common interface to i2c and SPI and then have a common driver?
I hesitated to do it (even started to write down some common code), and
finally there was not so much of it, I was not sure if it would bring
something more than obfuscation so I chose not to add an extra layer as
I had currently only one SPI chip and no I2C chip to check the
architecture. Maybe the question should be asked again when someone
will want I2C support.
Regards,
Miquèl
next prev parent reply other threads:[~2018-04-24 13:02 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-29 7:43 [U-Boot] [PATCH v2 00/19] Introduce SPI TPM v2.0 support Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 01/19] tpm: add Revision ID field in the chip structure Miquel Raynal
2018-03-29 22:41 ` Simon Glass
2018-03-29 7:43 ` [U-Boot] [PATCH v2 02/19] tpm: rename tpm_tis_infineon in tpm_tis_infineon_i2c Miquel Raynal
2018-03-29 22:41 ` Simon Glass
2018-03-29 7:43 ` [U-Boot] [PATCH v2 03/19] tpm: add support for TPMv2 SPI modules Miquel Raynal
2018-03-29 22:41 ` Simon Glass
2018-04-24 13:02 ` Miquel Raynal [this message]
2018-03-29 7:43 ` [U-Boot] [PATCH v2 04/19] tpm: fix indentation in command list before adding more Miquel Raynal
2018-03-29 22:41 ` Simon Glass
2018-03-29 7:43 ` [U-Boot] [PATCH v2 05/19] tpm: prepare support for TPMv2 commands Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-03-29 7:43 ` [U-Boot] [PATCH v2 06/19] tpm: add macros " Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-03-29 7:43 ` [U-Boot] [PATCH v2 07/19] tpm: add possible traces to analyze buffers returned by the TPM Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-04-28 12:27 ` Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 08/19] tpm: handle different buffer sizes Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-03-29 7:43 ` [U-Boot] [PATCH v2 09/19] tpm: add TPM2_Startup command support Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-04-27 13:45 ` Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 10/19] tpm: add TPM2_SelfTest " Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-04-24 12:53 ` Miquel Raynal
2018-04-26 14:40 ` Simon Glass
2018-04-28 13:10 ` Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 11/19] tpm: add TPM2_Clear " Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-04-24 13:17 ` Miquel Raynal
2018-04-26 14:40 ` Simon Glass
2018-04-27 13:39 ` Miquel Raynal
2018-05-03 19:01 ` Simon Glass
2018-03-29 7:43 ` [U-Boot] [PATCH v2 12/19] tpm: rename the _extend() function to be _pcr_event() Miquel Raynal
2018-03-29 9:44 ` Reinhard Pfau
2018-03-29 9:46 ` Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 13/19] tpm: add TPM2_PCR_Extend command support Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 14/19] tpm: add TPM2_PCR_Read " Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 15/19] tpm: add TPM2_GetCapability " Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 16/19] tpm: add dictionary attack mitigation commands support Miquel Raynal
2018-03-29 7:43 ` [U-Boot] [PATCH v2 17/19] tpm: add TPM2_HierarchyChangeAuth command support Miquel Raynal
2018-03-29 7:44 ` [U-Boot] [PATCH v2 18/19] tpm: add PCR authentication commands support Miquel Raynal
2018-03-29 22:42 ` Simon Glass
2018-03-29 7:44 ` [U-Boot] [PATCH v2 19/19] test/py: add TPMv2.0 test suite Miquel Raynal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180424150230.111687ae@xps13 \
--to=miquel.raynal@bootlin.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox