From 41b08d99441fb8cf9e5f69eec0209c3495a40ec9 Mon Sep 17 00:00:00 2001 From: Subrata Date: Thu, 14 May 2015 14:38:07 +0530 Subject: tpm: Fix multiple device support Current TPM driver does not support multiple devices for a given vendor. As the device object never takes the 2nd ID in the list. This patch fixes the same. BRANCH=None BUG=None TEST=Built for sklrvp and tested on RVP3. Change-Id: I82c3267c6c74b22650fc53dc6abdc2eb3daa138e Signed-off-by: Patrick Georgi Original-Commit-Id: ff42613f11b4f1a79e907601f1ecb7b83a3aeaab Original-Change-Id: Ieb44735c37208bfe90a8e22e0348dd41c8c642d2 Original-Signed-off-by: Subrata Original-Reviewed-on: https://chromium-review.googlesource.com/271727 Original-Reviewed-by: Duncan Laurie Original-Commit-Queue: Naveenkrishna Ch Original-Tested-by: Naveenkrishna Ch Original-Commit-Queue: Pravin K Angolkar Original-Tested-by: Pravin K Angolkar Reviewed-on: http://review.coreboot.org/10303 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Philipp Deppenwiese --- src/drivers/pc80/tpm/tpm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/drivers') diff --git a/src/drivers/pc80/tpm/tpm.c b/src/drivers/pc80/tpm/tpm.c index 12eba2828f..7fa9b58299 100644 --- a/src/drivers/pc80/tpm/tpm.c +++ b/src/drivers/pc80/tpm/tpm.c @@ -403,6 +403,7 @@ static u32 tis_probe(void) break; } j++; + dev = &vendor_names[i].dev_names[j]; } break; } -- cgit v1.2.3