From f09ac641d6c7f4eb0a667dc72119b5206377870c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 4 Jun 2014 07:20:22 +0000 Subject: [PATCH] lantiq: ath5k fix in wifi and ethernet eeprom handling patch. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ath5k fix in wifi and ethernet eeprom handling patch. Without the line that adds the patch of_ath5k_eeprom_probe cause a kernel panic, at least with the ARV4518PW. Tested only in the modem-router mentioned above. This patch is based in Bruno's hack present in patch #5454. Signed off by: Bruno Rodríguez Signed off by: José Vázquez Fernández SVN-Revision: 40999 --- .../0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch b/target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch index 403ee97a839..50c05277106 100644 --- a/target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch +++ b/target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch @@ -246,6 +246,8 @@ Subject: [PATCH 18/22] owrt: lantiq: wifi and ethernet eeprom handling + } + + eep = ioremap(eep_res->start, resource_size(eep_res)); ++ ath5k_pdata.eeprom_data = kmalloc(ATH5K_PLAT_EEP_MAX_WORDS<<1, ++ GFP_KERNEL); + memcpy_fromio(ath5k_pdata.eeprom_data, eep, + ATH5K_PLAT_EEP_MAX_WORDS << 1); + } -- 2.30.2