aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.18
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-05-23 15:25:51 +0000
committerJohn Crispin <blogic@openwrt.org>2015-05-23 15:25:51 +0000
commitb80601d35fde13a97f114b0883c2af27c4a5a160 (patch)
treecd1fe73d7ab537cbf1f47ffcbae238761958363e /target/linux/lantiq/patches-3.18
parente1a97a46f63688be1a3e9b811b77e98328e9bee6 (diff)
downloadmaster-187ad058-b80601d35fde13a97f114b0883c2af27c4a5a160.tar.gz
master-187ad058-b80601d35fde13a97f114b0883c2af27c4a5a160.tar.bz2
master-187ad058-b80601d35fde13a97f114b0883c2af27c4a5a160.zip
lantiq: Fix PCIe bus when PCI is also enabled.
The PCIe bus seems to require a hack/workaround when PCI is enabled as well. Unfortunately this is guarded by an CONFIG_IFX_PCI ifdef, which is only defined in lantiq's BSP code. The config symbol for the upstream lantiq PCI driver is CONFIG_PCI_LANTIQ. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45717 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.18')
-rw-r--r--target/linux/lantiq/patches-3.18/0001-MIPS-lantiq-add-pcie-driver.patch20
1 files changed, 10 insertions, 10 deletions
diff --git a/target/linux/lantiq/patches-3.18/0001-MIPS-lantiq-add-pcie-driver.patch b/target/linux/lantiq/patches-3.18/0001-MIPS-lantiq-add-pcie-driver.patch
index 2cc0814194..26f262c3e4 100644
--- a/target/linux/lantiq/patches-3.18/0001-MIPS-lantiq-add-pcie-driver.patch
+++ b/target/linux/lantiq/patches-3.18/0001-MIPS-lantiq-add-pcie-driver.patch
@@ -4115,11 +4115,11 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+{
+ u32 tbus_number = bus_number;
+
-+#ifdef CONFIG_IFX_PCI
++#ifdef CONFIG_PCI_LANTIQ
+ if (pcibios_host_nr() > 1) {
+ tbus_number -= pcibios_1st_host_bus_nr();
+ }
-+#endif /* CONFIG_IFX_PCI */
++#endif /* CONFIG_PCI_LANTIQ */
+ return tbus_number;
+}
+
@@ -4141,14 +4141,14 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ }
+
+ if (read) { /* Read hack */
-+ #ifdef CONFIG_IFX_PCI
++ #ifdef CONFIG_PCI_LANTIQ
+ if (pcibios_host_nr() > 1) {
+ tvalue = ifx_pcie_bus_enum_read_hack(where, tvalue);
+ }
-+ #endif /* CONFIG_IFX_PCI */
++ #endif /* CONFIG_PCI_LANTIQ */
+ }
+ else { /* Write hack */
-+ #ifdef CONFIG_IFX_PCI
++ #ifdef CONFIG_PCI_LANTIQ
+ if (pcibios_host_nr() > 1) {
+ tvalue = ifx_pcie_bus_enum_write_hack(where, tvalue);
+ }
@@ -5457,11 +5457,11 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+{
+ u32 tbus_number = bus_number;
+
-+#ifdef CONFIG_IFX_PCI
++#ifdef CONFIG_PCI_LANTIQ
+ if (pcibios_host_nr() > 1) {
+ tbus_number -= pcibios_1st_host_bus_nr();
+ }
-+#endif /* CONFIG_IFX_PCI */
++#endif /* CONFIG_PCI_LANTIQ */
+ return tbus_number;
+}
+
@@ -5483,14 +5483,14 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ }
+
+ if (read) { /* Read hack */
-+ #ifdef CONFIG_IFX_PCI
++ #ifdef CONFIG_PCI_LANTIQ
+ if (pcibios_host_nr() > 1) {
+ tvalue = ifx_pcie_bus_enum_read_hack(where, tvalue);
+ }
-+ #endif /* CONFIG_IFX_PCI */
++ #endif /* CONFIG_PCI_LANTIQ */
+ }
+ else { /* Write hack */
-+ #ifdef CONFIG_IFX_PCI
++ #ifdef CONFIG_PCI_LANTIQ
+ if (pcibios_host_nr() > 1) {
+ tvalue = ifx_pcie_bus_enum_write_hack(where, tvalue);
+ }