Skip to content

Commit f5725f4

Browse files
committed
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
1 parent fd37683 commit f5725f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎drivers/parisc/lba_pci.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,7 @@ static void
630630
lba_fixup_bus(struct pci_bus *bus)
631631
{
632632
struct list_head *ln;
633+
struct pci_dev *dev;
633634
#ifdef FBB_SUPPORT
634635
u16 status;
635636
#endif
@@ -712,8 +713,8 @@ lba_fixup_bus(struct pci_bus *bus)
712713

713714
list_for_each(ln, &bus->devices) {
714715
int i;
715-
struct pci_dev *dev = pci_dev_b(ln);
716716

717+
dev = pci_dev_b(ln);
717718
DBG("lba_fixup_bus() %s\n", pci_name(dev));
718719

719720
/* Virtualize Device/Bridge Resources. */
@@ -771,6 +772,7 @@ lba_fixup_bus(struct pci_bus *bus)
771772

772773
/* Lastly enable FBB/PERR/SERR on all devices too */
773774
list_for_each(ln, &bus->devices) {
775+
dev = pci_dev_b(ln);
774776
(void) pci_read_config_word(dev, PCI_COMMAND, &status);
775777
status |= PCI_COMMAND_PARITY | PCI_COMMAND_SERR | fbb_enable;
776778
(void) pci_write_config_word(dev, PCI_COMMAND, status);

0 commit comments

Comments
 (0)