diff mbox

[OpenWrt-Devel] ar71xx: fix qca956x ge0 speed

Message ID 1458910741-21461-1-git-send-email-hackpascal@gmail.com
State Changes Requested
Headers show

Commit Message

Weijie Gao March 25, 2016, 12:59 p.m. UTC
when qca956x uses the internal fe switch, the dummy function should be used

Signed-off-by: Weijie Gao <hackpascal@gmail.com>
---
 target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
index b43c80a..f292800 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
@@ -1128,7 +1128,7 @@  void __init ath79_register_eth(unsigned int id)
 			if (pdata->phy_if_mode == PHY_INTERFACE_MODE_SGMII)
 				pdata->set_speed = qca956x_set_speed_sgmii;
 			else
-				pdata->set_speed = ath79_set_speed_ge0;
+				pdata->set_speed = ath79_set_speed_dummy;
 		} else {
 			pdata->reset_bit = QCA955X_RESET_GE1_MAC |
 					   QCA955X_RESET_GE1_MDIO;