Merge branches 'pci/enumeration', 'pci/hotplug', 'pci/misc', 'pci/numa' and 'pci...
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Nov 2014 22:10:33 +0000 (15:10 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Nov 2014 22:10:33 +0000 (15:10 -0700)
* pci/enumeration:
  PCI: Remove fixed parameter in pci_iov_resource_bar()
  PCI: Add informational printk for invalid BARs
  PCI: Shrink decoding-disabled window while sizing BARs
  PCI: Restore detection of read-only BARs

* pci/hotplug:
  PCI: Remove unused and broken to_hotplug_slot()

* pci/misc:
  PCI: Make FLR and AF FLR reset warning messages different
  PCI: Simplify if-return sequences
  PCI: Delete unnecessary NULL pointer checks

* pci/numa:
  PCI: Allow numa_node override via sysfs

* pci/virtualization:
  xen/pcifront: Process failure for pcifront_(re)scan_root()

1  2  3  4  5  6 
drivers/pci/pci.c
drivers/pci/probe.c
drivers/pci/xen-pcifront.c

@@@@@@@ -3174,16 -3174,16 -3174,16 -3168,12 -3174,16 -3174,16 +3168,12 @@@@@@@ static int pci_af_flr(struct pci_dev *d
         * is used, so we use the conrol offset rather than status and shift
         * the test bit to match.
         */
--- --  if (pci_wait_for_pending(dev, pos + PCI_AF_CTRL,
+++ ++  if (!pci_wait_for_pending(dev, pos + PCI_AF_CTRL,
                                 PCI_AF_STATUS_TP << 8))
--- --          goto clear;
- - --
- - --  dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
+++ ++          dev_err(&dev->dev, "timed out waiting for pending transaction; performing AF function level reset anyway\n");
      
 -      dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
 -    
--- --clear:
        pci_write_config_byte(dev, pos + PCI_AF_CTRL, PCI_AF_CTRL_FLR);
        msleep(100);
--- --
        return 0;
      }
      
Simple merge
Simple merge