aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.vnet.ibm.com>2013-01-22 14:50:07 -0500
committerKent Yoder <key@linux.vnet.ibm.com>2013-02-05 10:38:24 -0500
commit3e3a5e906998b090ad929010a5f5082ac0dbbdfb (patch)
treee629d387d1b7bb771bc5c74076e3c36956c49c4a /drivers/char
parent4643826a3da17767494b85c956c73c138c96a7ea (diff)
tpm: Store TPM vendor ID
Store the TPM vendor ID for later use. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/tpm/tpm.h2
-rw-r--r--drivers/char/tpm/tpm_tis.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
index cbee6319be75..ef4ba5fcf7d9 100644
--- a/drivers/char/tpm/tpm.h
+++ b/drivers/char/tpm/tpm.h
@@ -105,6 +105,8 @@ struct tpm_vendor_specific {
105 105
106 wait_queue_head_t read_queue; 106 wait_queue_head_t read_queue;
107 wait_queue_head_t int_queue; 107 wait_queue_head_t int_queue;
108
109 u16 manufacturer_id;
108}; 110};
109 111
110#define TPM_VPRIV(c) (c)->vendor.priv 112#define TPM_VPRIV(c) (c)->vendor.priv
diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
index 74ce2d1f08b4..3615d210e603 100644
--- a/drivers/char/tpm/tpm_tis.c
+++ b/drivers/char/tpm/tpm_tis.c
@@ -534,6 +534,7 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
534 } 534 }
535 535
536 vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0)); 536 vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0));
537 chip->vendor.manufacturer_id = vendor;
537 538
538 dev_info(dev, 539 dev_info(dev,
539 "1.2 TPM (device-id 0x%X, rev-id %d)\n", 540 "1.2 TPM (device-id 0x%X, rev-id %d)\n",