aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parisc
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-08-16 18:57:22 -0400
committerBjorn Helgaas <bhelgaas@google.com>2012-08-22 13:34:38 -0400
commitf5725f4d3d9a69c647d6d2d504bd0ae87d9a08df (patch)
tree16f36a32ca774df2204dce9b053a28a6579b77a1 /drivers/parisc
parentfd3768349b0ba7bac9e102a8f146f783a03926fe (diff)
parisc/PCI: Enable PERR/SERR on all devices
Previously, we enabled PERR & SERR for the first device on the bus, but left other devices alone. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Yinghai Lu <yinghai@kernel.org> CC: linux-parisc@vger.kernel.org
Diffstat (limited to 'drivers/parisc')
-rw-r--r--drivers/parisc/lba_pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/parisc/lba_pci.c b/drivers/parisc/lba_pci.c
index 4f9cf2456f4e..4ce57c92e559 100644
--- a/drivers/parisc/lba_pci.c
+++ b/drivers/parisc/lba_pci.c
@@ -630,6 +630,7 @@ static void
630lba_fixup_bus(struct pci_bus *bus) 630lba_fixup_bus(struct pci_bus *bus)
631{ 631{
632 struct list_head *ln; 632 struct list_head *ln;
633 struct pci_dev *dev;
633#ifdef FBB_SUPPORT 634#ifdef FBB_SUPPORT
634 u16 status; 635 u16 status;
635#endif 636#endif
@@ -712,8 +713,8 @@ lba_fixup_bus(struct pci_bus *bus)
712 713
713 list_for_each(ln, &bus->devices) { 714 list_for_each(ln, &bus->devices) {
714 int i; 715 int i;
715 struct pci_dev *dev = pci_dev_b(ln);
716 716
717 dev = pci_dev_b(ln);
717 DBG("lba_fixup_bus() %s\n", pci_name(dev)); 718 DBG("lba_fixup_bus() %s\n", pci_name(dev));
718 719
719 /* Virtualize Device/Bridge Resources. */ 720 /* Virtualize Device/Bridge Resources. */
@@ -771,6 +772,7 @@ lba_fixup_bus(struct pci_bus *bus)
771 772
772 /* Lastly enable FBB/PERR/SERR on all devices too */ 773 /* Lastly enable FBB/PERR/SERR on all devices too */
773 list_for_each(ln, &bus->devices) { 774 list_for_each(ln, &bus->devices) {
775 dev = pci_dev_b(ln);
774 (void) pci_read_config_word(dev, PCI_COMMAND, &status); 776 (void) pci_read_config_word(dev, PCI_COMMAND, &status);
775 status |= PCI_COMMAND_PARITY | PCI_COMMAND_SERR | fbb_enable; 777 status |= PCI_COMMAND_PARITY | PCI_COMMAND_SERR | fbb_enable;
776 (void) pci_write_config_word(dev, PCI_COMMAND, status); 778 (void) pci_write_config_word(dev, PCI_COMMAND, status);