At present many TPM calls assume there is only one TPM in the system and look up this TPM themselves. This is inconsistent with driver model, which expects all driver methods to have a device parameter. Update the code to correct this.
Signed-off-by: Simon Glass <s...@chromium.org> --- Changes in v2: - Correct missing conversions in tpm-v1.c - Complete transition for gdsys powerpc boards board/gdsys/a38x/controlcenterdc.c | 25 +- board/gdsys/a38x/hre.c | 66 +++--- board/gdsys/a38x/hre.h | 2 +- board/gdsys/a38x/keyprogram.c | 12 +- board/gdsys/a38x/keyprogram.h | 4 +- board/gdsys/p1022/controlcenterd-id.c | 117 +++++---- cmd/tpm-common.c | 8 +- cmd/tpm-v1.c | 140 +++++++++-- cmd/tpm-v2.c | 78 +++++- cmd/tpm_test.c | 327 ++++++++++++++------------ include/tpm-common.h | 16 +- include/tpm-v1.h | 97 +++++--- include/tpm-v2.h | 49 ++-- lib/tpm-common.c | 16 +- lib/tpm-utils.h | 3 +- lib/tpm-v1.c | 142 +++++------ lib/tpm-v2.c | 60 ++--- 17 files changed, 731 insertions(+), 431 deletions(-) Applied to u-boot-dm/master, thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot