Skip to content

drivers: tpm: Fix Atmel/Microchip TPMv1.2 issues

Mathew McBride u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 8 repliesIn review
  2. v16 patches 14 repliesSuperseded

Changes in v2 from the cover letter

- Include model number in get_desc output
Example: "Atmel AT97SC3204T I2C 1.2 TPM (tpm@29)"

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6cmd: tpm-v1: fix compile error in TPMv1 list resources commandcmd/tpm-v1.c+6 -11 reply
2/6cmd: tpm-v1: fix load_key_by_sha1 compile errorscmd/tpm-v1.c lib/tpm-v1.c+7 -71 reply
3/6drivers: tpm: atmel_twi: drop non-DM_I2C compatibilitydrivers/tpm/tpm_atmel_twi.c+1 -131 reply
4/6drivers: tpm: atmel_twi: do not use an offset bytedrivers/tpm/tpm_atmel_twi.c+1 -02 replies
5/6drivers: tpm: atmel_twi: implement get_desc operationdrivers/tpm/tpm_atmel_twi.c+4 -11 reply
6/6drivers: tpm: atmel_twi: fix printf specifier compile warningdrivers/tpm/tpm_atmel_twi.c+1 -11 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchIlias ApalodimasSimon Glass
1/6R-b R-b
2/6R-b R-b
3/6R-b R-b
4/6A-b R-b
5/6R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] drivers: tpm: Fix Atmel/Microchip TPMv1.2 issues

While doing bringup/rebase for the Ten64 I did some troubleshooting for the tpm (v1.2, NOT tpm2) command which did not appear to function, despite the Linux driver and tools (tcsd) working on the same board.

Evidently the Atmel TPM driver hasn't kept up with various step changes in the I2C and TPM stacks, and while TPMv1.2 is quite dated to TPMv2 it would be nice to make some use of the hardware that is there.
(Admittedly I would love to replace our hardware TPM with an fTPM but that is a project for another day)

There are also subcommands in tpm-v1 which also have been missed in changes to the TPMv1 API and are fixed in this patchset.

Changes in v2:
- Include model number in get_desc output
Example: "Atmel AT97SC3204T I2C 1.2 TPM (tpm@29)"

Mathew McBride (6):
cmd: tpm-v1: fix compile error in TPMv1 list resources command
cmd: tpm-v1: fix load_key_by_sha1 compile errors
drivers: tpm: atmel_twi: drop non-DM_I2C compatibility
drivers: tpm: atmel_twi: do not use an offset byte
drivers: tpm: atmel_twi: implement get_desc operation
drivers: tpm: atmel_twi: fix printf specifier compile warning

 cmd/tpm-v1.c                | 17 +++++++++++------
 drivers/tpm/tpm_atmel_twi.c | 22 +++++++---------------
 lib/tpm-v1.c                |  4 ++--
 3 files changed, 20 insertions(+), 23 deletions(-)
Signature · 1 line
2.30.1