iwlagn: log pci revision id
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 31 Jul 2010 15:34:06 +0000 (08:34 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Aug 2010 19:26:37 +0000 (15:26 -0400)
Log the information after reading the PCI_REVISION_ID
from pci config space,

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c

index 8d4a2b569f050a05591aa96c04f3d0333b738e88..5c1ea0b2c6a22595c78b10ad07058b0e3f409e3b 100644 (file)
@@ -3888,6 +3888,7 @@ static void iwl_hw_detect(struct iwl_priv *priv)
        priv->hw_rev = _iwl_read32(priv, CSR_HW_REV);
        priv->hw_wa_rev = _iwl_read32(priv, CSR_HW_REV_WA_REG);
        pci_read_config_byte(priv->pci_dev, PCI_REVISION_ID, &priv->rev_id);
+       IWL_DEBUG_INFO(priv, "HW Revision ID = 0x%X\n", priv->rev_id);
 }
 
 static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)