ar71xx: Fix offset to WMAC address for 8devices Lima
authorSven Eckelmann <sven@narfation.org>
Thu, 7 Jun 2018 08:57:06 +0000 (10:57 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 18 Jun 2018 19:21:54 +0000 (21:21 +0200)
commit503f7f0614ec8f017f375f4a84fd8b8c75609a86
treefaf46d2482ee0e347fce09881c1d93735c8b1e68
parent697d7fd000e12c4ffc3a168da12dc4a9c6524023
ar71xx: Fix offset to WMAC address for 8devices Lima

The ART partition of the Lima board stores exactly three mac addresses:

* 0x0: eth0
* 0x6: eth1
* 0x1002: wmac

The first two are correctly assigned in the mach file but the latter points
to 0x800. But this position is set to ff:ff:ff:ff:ff:ff. Luckily, the
driver falls back in ath9k_hw_init_macaddr to the EEPROM mac address when
it doesn't find a valid mac address in the platform_data.

Remove this bogus offset to the ART partition to directly load the wmac via
the EEPROM data in the ART partition.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
(cherry picked from commit 4f6320704f7e37368a1dae2deba767a73b3bf121)
target/linux/ar71xx/files/arch/mips/ath79/mach-lima.c