diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-11-11 00:08:09 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-11-11 00:08:09 +0000 |
commit | 48bac91d7e7e377038ad51c697f9112817b9f849 (patch) | |
tree | 01a7b9d6bfeec891359e9f2591a64f3551812d5a /target/linux/generic/patches-3.12 | |
parent | 42f929f6db23a62ae869d2d688d36f95ec7ddffa (diff) | |
download | upstream-48bac91d7e7e377038ad51c697f9112817b9f849.tar.gz upstream-48bac91d7e7e377038ad51c697f9112817b9f849.tar.bz2 upstream-48bac91d7e7e377038ad51c697f9112817b9f849.zip |
kernel: bcma: detect pci ID 0x4313
This pci ID is used by sprom less BCM4313 devices.
This is a backport from the mainline kernel.
This is part of #13551.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38713 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.12')
-rw-r--r-- | target/linux/generic/patches-3.12/025-bcma_backport.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.12/025-bcma_backport.patch b/target/linux/generic/patches-3.12/025-bcma_backport.patch new file mode 100644 index 0000000000..9fc946c60c --- /dev/null +++ b/target/linux/generic/patches-3.12/025-bcma_backport.patch @@ -0,0 +1,24 @@ +--- a/drivers/bcma/host_pci.c ++++ b/drivers/bcma/host_pci.c +@@ -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,6 +272,7 @@ 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) }, |