aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/quirks.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bjorn.helgaas@hp.com>2009-09-14 16:36:41 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-09-14 16:39:00 -0400
commitfdcdaf6c4feca025de2f5e1b6c8e08ba0649e85a (patch)
tree95ccb85ea58a025189652b067c8d03f5f3fd1e99 /drivers/pci/quirks.c
parente9d8288871efa0d98a1d1d1f17976b5b00a0234d (diff)
PCI: use dev_printk in quirk messages
Convert quirk printks to dev_printk(). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> CC: Olaf Dabrunz <od@suse.de> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/quirks.c')
-rw-r--r--drivers/pci/quirks.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index e3034379a6c3..3b693942ebde 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -1567,10 +1567,8 @@ static void quirk_reroute_to_boot_interrupts_intel(struct pci_dev *dev)
1567 return; 1567 return;
1568 1568
1569 dev->irq_reroute_variant = INTEL_IRQ_REROUTE_VARIANT; 1569 dev->irq_reroute_variant = INTEL_IRQ_REROUTE_VARIANT;
1570 1570 dev_info(&dev->dev, "rerouting interrupts for [%04x:%04x]\n",
1571 printk(KERN_INFO "PCI quirk: reroute interrupts for 0x%04x:0x%04x\n", 1571 dev->vendor, dev->device);
1572 dev->vendor, dev->device);
1573 return;
1574} 1572}
1575DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_0, quirk_reroute_to_boot_interrupts_intel); 1573DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_0, quirk_reroute_to_boot_interrupts_intel);
1576DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_1, quirk_reroute_to_boot_interrupts_intel); 1574DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80333_1, quirk_reroute_to_boot_interrupts_intel);
@@ -1612,8 +1610,8 @@ static void quirk_disable_intel_boot_interrupt(struct pci_dev *dev)
1612 pci_config_word |= INTEL_6300_DISABLE_BOOT_IRQ; 1610 pci_config_word |= INTEL_6300_DISABLE_BOOT_IRQ;
1613 pci_write_config_word(dev, INTEL_6300_IOAPIC_ABAR, pci_config_word); 1611 pci_write_config_word(dev, INTEL_6300_IOAPIC_ABAR, pci_config_word);
1614 1612
1615 printk(KERN_INFO "disabled boot interrupt on device 0x%04x:0x%04x\n", 1613 dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n",
1616 dev->vendor, dev->device); 1614 dev->vendor, dev->device);
1617} 1615}
1618DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_10, quirk_disable_intel_boot_interrupt); 1616DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_10, quirk_disable_intel_boot_interrupt);
1619DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_10, quirk_disable_intel_boot_interrupt); 1617DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ESB_10, quirk_disable_intel_boot_interrupt);
@@ -1645,8 +1643,8 @@ static void quirk_disable_broadcom_boot_interrupt(struct pci_dev *dev)
1645 1643
1646 pci_write_config_dword(dev, BC_HT1000_FEATURE_REG, pci_config_dword); 1644 pci_write_config_dword(dev, BC_HT1000_FEATURE_REG, pci_config_dword);
1647 1645
1648 printk(KERN_INFO "disabled boot interrupts on PCI device" 1646 dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n",
1649 "0x%04x:0x%04x\n", dev->vendor, dev->device); 1647 dev->vendor, dev->device);
1650} 1648}
1651DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000SB, quirk_disable_broadcom_boot_interrupt); 1649DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000SB, quirk_disable_broadcom_boot_interrupt);
1652DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000SB, quirk_disable_broadcom_boot_interrupt); 1650DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_SERVERWORKS, PCI_DEVICE_ID_SERVERWORKS_HT1000SB, quirk_disable_broadcom_boot_interrupt);
@@ -1676,8 +1674,8 @@ static void quirk_disable_amd_813x_boot_interrupt(struct pci_dev *dev)
1676 pci_config_dword &= ~AMD_813X_NOIOAMODE; 1674 pci_config_dword &= ~AMD_813X_NOIOAMODE;
1677 pci_write_config_dword(dev, AMD_813X_MISC, pci_config_dword); 1675 pci_write_config_dword(dev, AMD_813X_MISC, pci_config_dword);
1678 1676
1679 printk(KERN_INFO "disabled boot interrupts on PCI device " 1677 dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n",
1680 "0x%04x:0x%04x\n", dev->vendor, dev->device); 1678 dev->vendor, dev->device);
1681} 1679}
1682DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_disable_amd_813x_boot_interrupt); 1680DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8131_BRIDGE, quirk_disable_amd_813x_boot_interrupt);
1683DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8132_BRIDGE, quirk_disable_amd_813x_boot_interrupt); 1681DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8132_BRIDGE, quirk_disable_amd_813x_boot_interrupt);
@@ -1693,14 +1691,13 @@ static void quirk_disable_amd_8111_boot_interrupt(struct pci_dev *dev)
1693 1691
1694 pci_read_config_word(dev, AMD_8111_PCI_IRQ_ROUTING, &pci_config_word); 1692 pci_read_config_word(dev, AMD_8111_PCI_IRQ_ROUTING, &pci_config_word);
1695 if (!pci_config_word) { 1693 if (!pci_config_word) {
1696 printk(KERN_INFO "boot interrupts on PCI device 0x%04x:0x%04x " 1694 dev_info(&dev->dev, "boot interrupts on device [%04x:%04x] "
1697 "already disabled\n", 1695 "already disabled\n", dev->vendor, dev->device);
1698 dev->vendor, dev->device);
1699 return; 1696 return;
1700 } 1697 }
1701 pci_write_config_word(dev, AMD_8111_PCI_IRQ_ROUTING, 0); 1698 pci_write_config_word(dev, AMD_8111_PCI_IRQ_ROUTING, 0);
1702 printk(KERN_INFO "disabled boot interrupts on PCI device " 1699 dev_info(&dev->dev, "disabled boot interrupts on device [%04x:%04x]\n",
1703 "0x%04x:0x%04x\n", dev->vendor, dev->device); 1700 dev->vendor, dev->device);
1704} 1701}
1705DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS, quirk_disable_amd_8111_boot_interrupt); 1702DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS, quirk_disable_amd_8111_boot_interrupt);
1706DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS, quirk_disable_amd_8111_boot_interrupt); 1703DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_AMD, PCI_DEVICE_ID_AMD_8111_SMBUS, quirk_disable_amd_8111_boot_interrupt);