Re: [PATCH 4/6] tpm_tis: print complete vendor information

From: Rajiv Andrade
Date: Thu Sep 10 2009 - 15:57:56 EST


Acked-by: Rajiv Andrade <srajiv@xxxxxxxxxxxxxxxxxx>

On Tue, 2009-06-30 at 18:04 -0700, Andy Isaacson wrote:
> The TPM_VID field contains a vendor-id as well as a device-id,
> but the code only prints the device-id. Fix it.
>
> Signed-off-by: Andy Isaacson <adi@xxxxxxxxxx>
> ---
> drivers/char/tpm/tpm_tis.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/char/tpm/tpm_tis.c b/drivers/char/tpm/tpm_tis.c
> index e0bda02..50c2a8a 100644
> --- a/drivers/char/tpm/tpm_tis.c
> +++ b/drivers/char/tpm/tpm_tis.c
> @@ -464,7 +464,7 @@ static int tpm_tis_init(struct device *dev, resource_size_t start,
> vendor = ioread32(chip->vendor.iobase + TPM_DID_VID(0));
>
> dev_info(dev,
> - "1.2 TPM (device-id 0x%X, rev-id %d)\n",
> + "1.2 TPM (%04X:%04X rev %d)\n", vendor & 0xffff,
> vendor >> 16, ioread8(chip->vendor.iobase + TPM_RID(0)));
>
> /* Figure out the capabilities */

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/