lantiq: ath5k fix in wifi and ethernet eeprom handling patch.
authorJohn Crispin <john@openwrt.org>
Wed, 4 Jun 2014 07:20:22 +0000 (07:20 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 4 Jun 2014 07:20:22 +0000 (07:20 +0000)
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>

SVN-Revision: 40999

target/linux/lantiq/patches-3.10/0010-MIPS-lantiq-wifi-and-ethernet-eeprom-handling.patch

index 403ee97a8392b8974912ec1c5d2b78ce8cd525fe..50c05277106e6d67df87125a4e714d70c56e56e5 100644 (file)
@@ -246,6 +246,8 @@ Subject: [PATCH 18/22] owrt: lantiq: wifi and ethernet eeprom handling
 +              }
 +
 +              eep = ioremap(eep_res->start, resource_size(eep_res));
 +              }
 +
 +              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);
 +      }
 +              memcpy_fromio(ath5k_pdata.eeprom_data, eep,
 +                              ATH5K_PLAT_EEP_MAX_WORDS << 1);
 +      }