diff options
author | John Crispin <blogic@openwrt.org> | 2014-06-04 07:20:22 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-06-04 07:20:22 +0000 |
commit | 63b35378174dd36ad4d9b79c31e9b15abe498b88 (patch) | |
tree | ffaec4a61f0b4dbdcbf8ec78de84df8183e42be0 /target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch | |
parent | 6e8d82998b4131972ae2d63cd64aae91f3f4c686 (diff) | |
download | upstream-63b35378174dd36ad4d9b79c31e9b15abe498b88.tar.gz upstream-63b35378174dd36ad4d9b79c31e9b15abe498b88.tar.bz2 upstream-63b35378174dd36ad4d9b79c31e9b15abe498b88.zip |
lantiq: ath5k fix in wifi and ethernet eeprom handling patch.
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 <bruno.rodriguez.1980@gmail.com>
Signed off by: José Vázquez Fernández <ppvazquezfer@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40999 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch')
-rw-r--r-- | target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch | 2 |
1 files changed, 2 insertions, 0 deletions
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 403ee97a83..50c0527710 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); + } |