diff options
author | Zoltan Herpai <wigyori@uid0.hu> | 2016-10-12 00:25:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-12 00:25:31 +0200 |
commit | 7f0cba3eb9b5ab3a575875593777f269363c4d42 (patch) | |
tree | 429c4f8fe8958660a2018be53612522c4dfe5bb5 /target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | |
parent | 9d73574fd9eb9829e5d8a03813001843a210a551 (diff) | |
parent | 9c840109de4494b3ecc29917090deb13518338ad (diff) | |
download | master-187ad058-7f0cba3eb9b5ab3a575875593777f269363c4d42.tar.gz master-187ad058-7f0cba3eb9b5ab3a575875593777f269363c4d42.tar.bz2 master-187ad058-7f0cba3eb9b5ab3a575875593777f269363c4d42.zip |
Merge pull request #126 from wigyori/master
ar71xx: backport flow-control related patches
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 17dd3ac6b1..07cb12c8e9 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c @@ -907,6 +907,7 @@ void __init ath79_register_eth(unsigned int id) pdata->speed = SPEED_1000; pdata->duplex = DUPLEX_FULL; pdata->switch_data = &ath79_switch_data; + pdata->use_flow_control = 1; ath79_switch_data.phy_poll_mask |= BIT(4); } @@ -951,6 +952,7 @@ void __init ath79_register_eth(unsigned int id) pdata->has_gbit = 1; pdata->duplex = DUPLEX_FULL; pdata->switch_data = &ath79_switch_data; + pdata->use_flow_control = 1; ath79_switch_data.phy_poll_mask |= BIT(4); } @@ -1015,6 +1017,7 @@ void __init ath79_register_eth(unsigned int id) pdata->speed = SPEED_1000; pdata->duplex = DUPLEX_FULL; pdata->switch_data = &ath79_switch_data; + pdata->use_flow_control = 1; ath79_switch_data.phy_poll_mask |= BIT(4); } @@ -1083,6 +1086,7 @@ void __init ath79_register_eth(unsigned int id) pdata->speed = SPEED_1000; pdata->duplex = DUPLEX_FULL; + pdata->use_flow_control = 1; /* reset the built-in switch */ ath79_device_reset_set(AR934X_RESET_ETH_SWITCH); |