提交 3e3a5e90 编写于 作者: S Stefan Berger 提交者: Kent Yoder

tpm: Store TPM vendor ID

Store the TPM vendor ID for later use.
Signed-off-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: NKent Yoder <key@linux.vnet.ibm.com>
上级 4643826a
......@@ -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
......
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册