openwrt/target/linux
Michal Cieslakiewicz 4bff3f392b ar71xx: WNR612v2: fix kernel panic due to wrong Wifi LED init
Netgear WNR612v2 flashed with recent OpenWrt builds suffers from kernel
panic at boot during wireless chip initialization, making device
unusable:

 ath: phy0: Ignoring endianness difference in EEPROM magic bytes.
 ath: phy0: Enable LNA combining
 CPU 0 Unable to handle kernel paging request at virtual address 1000fee1, epc == 801d08f0, ra == 801d0d90
 Oops[#1]:
 CPU: 0 PID: 469 Comm: kmodloader Not tainted 4.9.120 #0
 [ ... register dump etc ... ]
 Kernel panic - not syncing: Fatal exception
 Rebooting in 1 seconds..

This simple patch fixes above error. It keeps LED table in memory after
kernel init phase for ath9k driver to operate correctly (__initdata
removed).

Also, another bug is fixed - correct array size is provided to function
that adds platform LEDs (this device has only 1 connected to Wifi chip)
preventing code from going outside array bounds.

Fixes: 1f5ea4eae4 ("ar71xx: add correct named default wireless led by using platform leds")

Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
[trimmed commit message]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-08-28 07:21:13 +02:00
..
apm821xx kernel: bump 4.14 to 4.14.60 for 18.06 2018-08-06 07:30:41 +02:00
ar7 kernel: remove linux 3.18 support 2018-08-08 09:54:51 +02:00
ar71xx ar71xx: WNR612v2: fix kernel panic due to wrong Wifi LED init 2018-08-28 07:21:13 +02:00
arc770 arc770: remove source-only 2018-05-24 17:24:30 +02:00
archs38 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
armvirt kernel: add missing ARM64_SSBD symbol 2018-08-06 09:17:31 +02:00
at91 at91: do not build image for at91-q5xr5 2018-08-12 11:31:28 +02:00
ath25 ath25: Do not build images for ubnt2 and ubnt5 2018-08-12 11:32:57 +02:00
bcm53xx kernel: bump 4.14 to 4.14.60 for 18.06 2018-08-06 07:30:41 +02:00
brcm47xx brcm47xx: cosmetic fix in model detection 2018-08-13 08:36:18 +02:00
brcm63xx kernel: bump 4.14 to 4.14.60 for 18.06 2018-08-06 07:30:41 +02:00
brcm2708 kernel: bump 4.9 to 4.9.119 2018-08-10 18:43:59 +02:00
cns3xxx cns3xxx: fix mtu setting with kernel 4.14 2018-08-20 13:04:34 +02:00
gemini kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
generic generic: revert workarounds for AR8337 switch 2018-08-23 22:44:47 +02:00
imx6 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
ipq40xx kernel: bump kernel 4.14 to version 4.14.63 2018-08-15 22:40:58 +02:00
ipq806x ipq806x: fix numbering for Netgear R7800 LAN ports 2018-07-04 01:20:44 +02:00
ixp4xx kernel: bump 4.9 to 4.9.123 2018-08-22 13:48:04 +02:00
kirkwood kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
lantiq kernel: bump 4.9 to 4.9.117 for 18.06 2018-08-06 07:30:32 +02:00
layerscape kernel: bump 4.9 to 4.9.119 2018-08-10 18:43:59 +02:00
malta malta: bump tp v4.14 2018-01-09 10:26:16 +01:00
mediatek kernel: bump kernel 4.14 to version 4.14.63 2018-08-15 22:40:58 +02:00
mpc85xx WDR4900v1 remove dt node for absent hw crypto. 2018-07-21 18:38:18 +02:00
mvebu kernel: add missing ARM64_SSBD symbol 2018-08-06 09:17:31 +02:00
mxs kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
octeon kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
octeontx kernel: add missing ARM64_SSBD symbol 2018-08-06 09:17:31 +02:00
omap kernel: enable EXPORTFS by default 2018-05-24 17:24:31 +02:00
orion orion: remove linux 4.4 support 2018-04-19 14:38:57 +02:00
oxnas kernel: bump 4.14 to 4.14.60 for 18.06 2018-08-06 07:30:41 +02:00
pistachio kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
ramips ramips: mt7620: add dir-810l network config 2018-08-23 22:44:47 +02:00
rb532 treewide: move nand_do_upgrade call to platform_do_upgrade 2018-02-16 14:44:02 +01:00
sunxi kernel: bump 4.9 to 4.9.118 2018-08-08 16:35:19 +02:00
uml kernel: bump 4.9 to 4.9.102 for 18.06 2018-05-24 16:03:58 +02:00
x86 kernel: bump 4.9 to 4.9.106 for 18.06 2018-06-07 09:03:05 +02:00
Makefile