Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753836AbZIJT5s (ORCPT ); Thu, 10 Sep 2009 15:57:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753093AbZIJT5s (ORCPT ); Thu, 10 Sep 2009 15:57:48 -0400 Received: from e24smtp02.br.ibm.com ([32.104.18.86]:33503 "EHLO e24smtp02.br.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930AbZIJT5r (ORCPT ); Thu, 10 Sep 2009 15:57:47 -0400 Subject: Re: [PATCH 4/6] tpm_tis: print complete vendor information From: Rajiv Andrade To: Andy Isaacson Cc: jmorris@namei.org, linux-kernel@vger.kernel.org, tpmdd-devel@lists.sourceforge.net, adi@hexapodia.org, dds@google.com, Mimi Zohar , Shahbaz Khan , seiji.munetoh@gmail.com In-Reply-To: <1246410255-6839-5-git-send-email-adi@vmware.com> References: <1246410255-6839-1-git-send-email-adi@vmware.com> <1246410255-6839-5-git-send-email-adi@vmware.com> Content-Type: text/plain Date: Thu, 10 Sep 2009 16:57:39 -0300 Message-Id: <1252612659.4837.111.camel@blackbox> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1174 Lines: 30 Acked-by: Rajiv Andrade 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 > --- > 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/