]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'pci/next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Sep 2012 01:55:35 +0000 (11:55 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Sep 2012 01:55:35 +0000 (11:55 +1000)
Conflicts:
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/rapidio/devices/tsi721.c

12 files changed:
1  2 
arch/powerpc/platforms/powernv/pci-ioda.c
drivers/gpu/drm/radeon/evergreen.c
drivers/iommu/intel-iommu.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/wireless/ath/ath9k/pci.c
drivers/net/wireless/iwlwifi/pcie/trans.c
drivers/pci/pci.c
drivers/pci/pcie/portdrv_pci.c
drivers/pci/probe.c
drivers/rapidio/devices/tsi721.c

Simple merge
Simple merge
index 21054987257a12960b859594db72830c42e21059,281cf3f7bc209b0dd30b4aa56fa78b22fe83d3b4..605c4574d32d17467753087a4c7c6ba20ab4dadf
@@@ -9372,29 -9378,28 +9366,25 @@@ static int __devinit bnx2x_prev_mark_pa
        return rc;
  }
  
 -static bool __devinit bnx2x_can_flr(struct bnx2x *bp)
 -{
 -      u32 cap;
 -      struct pci_dev *dev = bp->pdev;
 -
 -      pcie_capability_read_dword(dev, PCI_EXP_DEVCAP, &cap);
 -      if (!(cap & PCI_EXP_DEVCAP_FLR))
 -              return false;
 -
 -      return true;
 -}
 -
  static int __devinit bnx2x_do_flr(struct bnx2x *bp)
  {
-       int i, pos;
+       int i;
        u16 status;
        struct pci_dev *dev = bp->pdev;
  
 -      /* probe the capability first */
 -      if (bnx2x_can_flr(bp))
 -              return -ENOTTY;
 +
 +      if (CHIP_IS_E1x(bp)) {
 +              BNX2X_DEV_INFO("FLR not supported in E1/E1H\n");
 +              return -EINVAL;
 +      }
 +
 +      /* only bootcode REQ_BC_VER_4_INITIATE_FLR and onwards support flr */
 +      if (bp->common.bc_ver < REQ_BC_VER_4_INITIATE_FLR) {
 +              BNX2X_ERR("FLR not supported by BC_VER: 0x%x\n",
 +                        bp->common.bc_ver);
 +              return -EINVAL;
 +      }
  
-       pos = pci_pcie_cap(dev);
-       if (!pos)
-               return -ENOTTY;
        /* Wait for Transaction Pending bit clean */
        for (i = 0; i < 4; i++) {
                if (i)
Simple merge
Simple merge
Simple merge
Simple merge
index 5d44252b7342f3d72dd5060770f2b42ef3bb2e8f,fc22b93e0924601e7797ba92f7d14fd51666b42f..d5e1625bbac2432ff7965a2b70ab438b98aa4959
@@@ -2219,9 -2212,8 +2219,7 @@@ static int __devinit tsi721_probe(struc
                                  const struct pci_device_id *id)
  {
        struct tsi721_device *priv;
-       int cap;
 -      int i;
        int err;
-       u32 regval;
  
        priv = kzalloc(sizeof(struct tsi721_device), GFP_KERNEL);
        if (priv == NULL) {