kernel: bcma: detect pci ID 0x4313
[openwrt/svn-archive/archive.git] / target / linux / generic / patches-3.10 / 025-bcma_backport.patch
index 7349fb2e32e80409eb102d3afa0afea034d27955..853d524e12974ff519b85f4a4c7440bd5d0c1c00 100644 (file)
        switch (cc->capabilities & BCMA_CC_CAP_FLASHT) {
 --- a/drivers/bcma/host_pci.c
 +++ b/drivers/bcma/host_pci.c
-@@ -275,6 +275,7 @@ static DEFINE_PCI_DEVICE_TABLE(bcma_pci_
+@@ -188,8 +188,11 @@ static int bcma_host_pci_probe(struct pc
+               pci_write_config_dword(dev, 0x40, val & 0xffff00ff);
+       /* SSB needed additional powering up, do we have any AMBA PCI cards? */
+-      if (!pci_is_pcie(dev))
+-              bcma_err(bus, "PCI card detected, report problems.\n");
++      if (!pci_is_pcie(dev)) {
++              bcma_err(bus, "PCI card detected, they are not supported.\n");
++              err = -ENXIO;
++              goto err_pci_release_regions;
++      }
+       /* Map MMIO */
+       err = -ENOMEM;
+@@ -269,12 +272,14 @@ static SIMPLE_DEV_PM_OPS(bcma_pm_ops, bc
+ static DEFINE_PCI_DEVICE_TABLE(bcma_pci_bridge_tbl) = {
+       { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x0576) },
++      { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4313) },
+       { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 43224) },
+       { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4331) },
+       { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4353) },
        { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4357) },
        { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4358) },
        { PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, 0x4359) },