Commit 49ded76b authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by John W. Linville

iwlagn: log pci revision id

Log the information after reading the PCI_REVISION_ID
from pci config space,
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3867fe04
...@@ -3888,6 +3888,7 @@ static void iwl_hw_detect(struct iwl_priv *priv) ...@@ -3888,6 +3888,7 @@ static void iwl_hw_detect(struct iwl_priv *priv)
priv->hw_rev = _iwl_read32(priv, CSR_HW_REV); priv->hw_rev = _iwl_read32(priv, CSR_HW_REV);
priv->hw_wa_rev = _iwl_read32(priv, CSR_HW_REV_WA_REG); 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); 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) static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment