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 | |
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')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 4 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h | 1 |
2 files changed, 5 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); diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h index d46dc4e317..5fd352c638 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h @@ -36,6 +36,7 @@ struct ag71xx_platform_data { u8 is_ar7240:1; u8 is_ar724x:1; u8 has_ar8216:1; + u8 use_flow_control:1; struct ag71xx_switch_platform_data *switch_data; |