openwrtv4/target/linux
Koen Vandeputte 3b53d6fdbc ar71xx: fix pci irq init on kernel 4.14
The IRQ init structs are marked as __initconst which
means this memory can be free after init.

On this platform, the PCI IRQ init happens very late _after_ the
kernel already freed the memory allocated for these structs.

During IRQ allocation, the allocation function is passed
with invalid data at this point leading to following error:

[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0
[    2.382828] Freeing unused kernel memory: 264K
[   34.414816] pci 0000:00:00.0: no irq found for pin 1

and

[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    2.125401] Freeing unused kernel memory: 284K
[    9.526479] pci 0000:00:00.0: no irq found for pin 1

After this patch:

[   14.960814] pci 0000:00:00.0: using irq 40 for pin 1

Commit 318e19ba67 ("ar71xx: add v4.14 support") fixed this for the
default targets already present in the source by default but forgot
to remove the __initconst attribute for targets QCA953x and QCA956x
which are only added later through platform patches.

Fixes: 318e19ba67 ("ar71xx: add v4.14 support")

Reported-by: Sven Schönhoff <sven.schoenhoff@gmail.com>
Reported-by: Dirk Brenken <dev@brenken.org>
Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Tested-by: Dirk Brenken <dev@brenken.org>
2018-10-04 16:15:24 +02:00
..
adm5120 kernel: bump 3.18 to 3.18.123 2018-09-26 15:54:18 +02:00
adm8668 kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
apm821xx apm821xx: net: emac: fix fixed-link setup for the RTL8363SB switch 2018-09-29 17:23:11 +02:00
ar7 ar7: remove linux 3.18 support 2018-08-13 17:10:39 +02:00
ar71xx ar71xx: fix pci irq init on kernel 4.14 2018-10-04 16:15:24 +02:00
arc770 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
archs38 arc: Update variables substitutions in u-boot env files 2018-07-12 10:24:31 +02:00
armvirt armvirt: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
at91 treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
ath25 ath25: drop 4.9 kernel support 2018-05-22 07:20:13 +02:00
ath79 kernel: bump 4.14 to 4.14.73 2018-10-02 13:44:36 +02:00
au1000 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
bcm53xx kernel: bump 4.14 to 4.14.72 2018-09-26 15:54:18 +02:00
brcm47xx brcm47xx: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
brcm63xx treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
brcm2708 kernel: bump 4.9 to 4.9.129 2018-09-26 15:54:18 +02:00
cns3xxx kernel: bump 4.14 to 4.14.67 2018-08-28 23:05:39 +02:00
gemini kernel: remove DEVMEM and DEVKMEM from target's config 2018-07-07 18:19:39 +02:00
generic kernel: bump 4.14 to 4.14.74 2018-10-04 16:15:03 +02:00
imx6 imx6: use BUILD_DEVICES in uboot-imx6 for mx6cuboxi 2018-09-05 10:00:01 +02:00
ipq40xx mac80211: fix selecting of ath10k -ct firmware 2018-09-27 00:22:13 +02:00
ipq806x kernel: bump 4.14 to 4.14.74 2018-10-04 16:15:03 +02:00
ixp4xx kernel: bump 4.9 to 4.9.127 2018-09-17 15:47:44 +02:00
kirkwood kirkwood: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
lantiq mac80211: make ath10k-ct the default ath10k 2018-09-26 16:39:44 +02:00
layerscape kernel: bump 4.9 to 4.9.131 2018-10-04 16:15:03 +02:00
malta malta: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
mcs814x kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
mediatek kernel: bump 4.14 to 4.14.74 2018-10-04 16:15:03 +02:00
mpc85xx treewide: replace 'linux, stdout-path' with 'stdout-path' 2018-09-29 17:23:11 +02:00
mvebu kernel: bump 4.14 to 4.14.73 2018-10-02 13:44:36 +02:00
mxs kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
octeon octeon: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
octeontx kernel: add missing ARM64_SSBD symbol 2018-07-31 12:22:11 +03:00
omap omap: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
omap24xx
orion
oxnas treewide: fix some cosmetic glitches in dts files 2018-08-27 19:31:17 +02:00
pistachio kernel: bump 4.14 to 4.14.70 2018-09-17 15:47:44 +02:00
ppc40x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ppc44x kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
ramips kernel: bump 4.14 to 4.14.74 2018-10-04 16:15:03 +02:00
rb532 kernel: only optimized for size if small_flash 2018-07-12 18:15:32 +02:00
samsung samsung: Remove unneeded config options 2018-09-29 17:23:11 +02:00
sunxi sunxi: Turn on CONFIG_SUN4I_A10_CCU for A20 2018-10-02 20:54:01 -07:00
uml uml: update to linux 4.14 2018-09-29 18:09:45 +02:00
x86 x86: remove linux 4.9 support 2018-09-29 18:09:45 +02:00
xburst kernel: bump 3.18 to 3.18.119 2018-08-20 13:03:23 +02:00
zynq zynq: kernel: select FPGA-related configs 2018-09-22 21:20:55 +02:00
Makefile