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>
This commit is contained in:
Stefan Berger 2013-01-22 13:50:07 -06:00 committed by Kent Yoder
parent 4643826a3d
commit 3e3a5e9069
2 changed files with 3 additions and 0 deletions

View File

@ -105,6 +105,8 @@ struct tpm_vendor_specific {
wait_queue_head_t read_queue; wait_queue_head_t read_queue;
wait_queue_head_t int_queue; wait_queue_head_t int_queue;
u16 manufacturer_id;
}; };
#define TPM_VPRIV(c) (c)->vendor.priv #define TPM_VPRIV(c) (c)->vendor.priv

View File

@ -534,6 +534,7 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
} }
vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0)); vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0));
chip->vendor.manufacturer_id = vendor;
dev_info(dev, dev_info(dev,
"1.2 TPM (device-id 0x%X, rev-id %d)\n", "1.2 TPM (device-id 0x%X, rev-id %d)\n",