Skip to content

Commit

Permalink
tpm: Store TPM vendor ID
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stefan Berger authored and Kent Yoder committed Feb 5, 2013
1 parent 4643826 commit 3e3a5e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/tpm/tpm.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ struct tpm_vendor_specific {

wait_queue_head_t read_queue;
wait_queue_head_t int_queue;

u16 manufacturer_id;
};

#define TPM_VPRIV(c) (c)->vendor.priv
Expand Down
1 change: 1 addition & 0 deletions drivers/char/tpm/tpm_tis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
chip->vendor.manufacturer_id = vendor;

dev_info(dev,
"1.2 TPM (device-id 0x%X, rev-id %d)\n",
Expand Down

0 comments on commit 3e3a5e9

Please sign in to comment.