From aa67259629c602d0ac4bf7e7950d1b7998d25238 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 10 Mar 2015 13:34:04 +0100 Subject: [PATCH] ar71xx/sysmocom: fix ethernet support of sysmo-ap1 & sysmo-jb02 wrong ethernet mac was used --- target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c index eb129da..195054c 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c @@ -82,7 +82,8 @@ static void __init sysmocom_sob_ap1_setup(void) ath79_setup_ar933x_phy4_switch(false, false); ath79_init_mac(ath79_eth0_data.mac_addr, art + SYSMOCOM_MAC0_OFFSET, 0); ath79_register_mdio(0, 0x0); - ath79_register_eth(0); + /* ath79_register_eth(0) is unused because it using the internal switch */ + ath79_register_eth(1); ath79_gpio_function_disable(AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN | AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN | @@ -139,7 +140,8 @@ static void __init sysmocom_sob_jb02_setup(void) ath79_setup_ar933x_phy4_switch(false, false); ath79_init_mac(ath79_eth0_data.mac_addr, art + SYSMOCOM_MAC0_OFFSET, 0); ath79_register_mdio(0, 0x0); - ath79_register_eth(0); + /* ath79_register_eth(0) is unused because it using the internal switch */ + ath79_register_eth(1); ath79_gpio_function_disable(AR724X_GPIO_FUNC_ETH_SWITCH_LED0_EN | AR724X_GPIO_FUNC_ETH_SWITCH_LED1_EN |