aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-06-08 12:49:54 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-06-08 12:49:54 +0000
commitfffad27014a043339241fce3c5f45c7d4a795936 (patch)
tree1c44fc98d30ce913694e92eb2bc457996ed5927c /target
parent6abe69b2d0a9c7f3b418c5453b8d136b5599e204 (diff)
downloadupstream-fffad27014a043339241fce3c5f45c7d4a795936.tar.gz
upstream-fffad27014a043339241fce3c5f45c7d4a795936.tar.bz2
upstream-fffad27014a043339241fce3c5f45c7d4a795936.zip
kernel: backport config-related bcma patches from 4.2
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45927 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/patches-3.18/028-bcma-from-4.2.patch49
-rw-r--r--target/linux/generic/patches-4.0/022-bcma-from-4.2.patch49
2 files changed, 98 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.18/028-bcma-from-4.2.patch b/target/linux/generic/patches-3.18/028-bcma-from-4.2.patch
index 1a9f472a4a..ba3df18bdd 100644
--- a/target/linux/generic/patches-3.18/028-bcma-from-4.2.patch
+++ b/target/linux/generic/patches-3.18/028-bcma-from-4.2.patch
@@ -35,3 +35,52 @@
err = bcma_gpio_irq_domain_init(cc);
if (err)
+--- a/drivers/bcma/Kconfig
++++ b/drivers/bcma/Kconfig
+@@ -29,12 +29,6 @@ config BCMA_HOST_PCI
+ select BCMA_DRIVER_PCI
+ default y
+
+-config BCMA_DRIVER_PCI_HOSTMODE
+- bool "Driver for PCI core working in hostmode"
+- depends on BCMA && MIPS && BCMA_HOST_PCI
+- help
+- PCI core hostmode operation (external PCI bus).
+-
+ config BCMA_HOST_SOC
+ bool "Support for BCMA in a SoC"
+ depends on BCMA
+@@ -61,6 +55,12 @@ config BCMA_DRIVER_PCI
+ This driver is also prerequisite for a hostmode PCIe core
+ support.
+
++config BCMA_DRIVER_PCI_HOSTMODE
++ bool "Driver for PCI core working in hostmode"
++ depends on BCMA && MIPS && BCMA_DRIVER_PCI
++ help
++ PCI core hostmode operation (external PCI bus).
++
+ config BCMA_DRIVER_MIPS
+ bool "BCMA Broadcom MIPS core driver"
+ depends on BCMA && MIPS
+--- a/include/linux/bcma/bcma_driver_pci.h
++++ b/include/linux/bcma/bcma_driver_pci.h
+@@ -246,7 +246,18 @@ static inline void bcma_core_pci_power_s
+ }
+ #endif
+
++#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
+ extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev);
+ extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev);
++#else
++static inline int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev)
++{
++ return -ENOTSUPP;
++}
++static inline int bcma_core_pci_plat_dev_init(struct pci_dev *dev)
++{
++ return -ENOTSUPP;
++}
++#endif
+
+ #endif /* LINUX_BCMA_DRIVER_PCI_H_ */
diff --git a/target/linux/generic/patches-4.0/022-bcma-from-4.2.patch b/target/linux/generic/patches-4.0/022-bcma-from-4.2.patch
index 1a9f472a4a..ba3df18bdd 100644
--- a/target/linux/generic/patches-4.0/022-bcma-from-4.2.patch
+++ b/target/linux/generic/patches-4.0/022-bcma-from-4.2.patch
@@ -35,3 +35,52 @@
err = bcma_gpio_irq_domain_init(cc);
if (err)
+--- a/drivers/bcma/Kconfig
++++ b/drivers/bcma/Kconfig
+@@ -29,12 +29,6 @@ config BCMA_HOST_PCI
+ select BCMA_DRIVER_PCI
+ default y
+
+-config BCMA_DRIVER_PCI_HOSTMODE
+- bool "Driver for PCI core working in hostmode"
+- depends on BCMA && MIPS && BCMA_HOST_PCI
+- help
+- PCI core hostmode operation (external PCI bus).
+-
+ config BCMA_HOST_SOC
+ bool "Support for BCMA in a SoC"
+ depends on BCMA
+@@ -61,6 +55,12 @@ config BCMA_DRIVER_PCI
+ This driver is also prerequisite for a hostmode PCIe core
+ support.
+
++config BCMA_DRIVER_PCI_HOSTMODE
++ bool "Driver for PCI core working in hostmode"
++ depends on BCMA && MIPS && BCMA_DRIVER_PCI
++ help
++ PCI core hostmode operation (external PCI bus).
++
+ config BCMA_DRIVER_MIPS
+ bool "BCMA Broadcom MIPS core driver"
+ depends on BCMA && MIPS
+--- a/include/linux/bcma/bcma_driver_pci.h
++++ b/include/linux/bcma/bcma_driver_pci.h
+@@ -246,7 +246,18 @@ static inline void bcma_core_pci_power_s
+ }
+ #endif
+
++#ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE
+ extern int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev);
+ extern int bcma_core_pci_plat_dev_init(struct pci_dev *dev);
++#else
++static inline int bcma_core_pci_pcibios_map_irq(const struct pci_dev *dev)
++{
++ return -ENOTSUPP;
++}
++static inline int bcma_core_pci_plat_dev_init(struct pci_dev *dev)
++{
++ return -ENOTSUPP;
++}
++#endif
+
+ #endif /* LINUX_BCMA_DRIVER_PCI_H_ */