openwrtv4/target/linux/ar71xx
Michal Cieslakiewicz 2e3e0fd94c 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:01 +02:00
..
base-files ar71xx: add support for TP-LINK CPE510 V2.0 2018-08-02 07:49:26 +02:00
files ar71xx: WNR612v2: fix kernel panic due to wrong Wifi LED init 2018-08-28 07:21:01 +02:00
generic ar71xx/generic: enable Zyxel NBG6616 in kernel config again 2018-08-27 20:27:25 +02:00
image ath79: add support for Buffalo BHR-4GRV2 2018-08-09 18:44:57 +02:00
mikrotik ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
nand ar71xx: reorganize kernel configuration 2018-01-13 19:54:45 +01:00
patches-4.9 ar71xx: add v4.14 support 2018-08-22 08:09:00 +02:00
patches-4.14 kernel: bump 4.14 to 4.14.66 2018-08-22 13:47:13 +02:00
tiny ar71xx: Move F9K1115v2 under ar71xx tiny target 2018-07-16 15:12:19 +02:00
config-4.9 ar71xx: add support for TP-Link Archer C59 v2 2018-07-30 14:04:45 +02:00
config-4.14 ar71xx: add v4.14 support 2018-08-22 08:09:00 +02:00
Makefile ar71xx: create new ar71xx/tiny subtarget for 4MB flash devices 2018-01-13 19:54:45 +01:00
modules.mk ar71xx: add LED driver NU801 2015-12-11 15:04:57 +00:00