aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-29 18:29:24 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-04-29 18:29:24 +0000
commit3e3a4d3d6b4c9d6e34ea887151db8df98d3db001 (patch)
tree116282de2fa4fda155c218e53d6a4009067c828a /target/linux/ar71xx/files/arch
parenta8d3109208e60349dbdc9d5d2aa73aee462ae7c8 (diff)
downloadupstream-3e3a4d3d6b4c9d6e34ea887151db8df98d3db001.tar.gz
upstream-3e3a4d3d6b4c9d6e34ea887151db8df98d3db001.tar.bz2
upstream-3e3a4d3d6b4c9d6e34ea887151db8df98d3db001.zip
ar71xx: allow to disable link polling on unused PHYs
SVN-Revision: 31533
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c4
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ath79/ag71xx_platform.h1
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 d9880e0803..1e6b8b0a17 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
@@ -721,6 +721,8 @@ void __init ath79_register_eth(unsigned int id)
pdata->speed = SPEED_1000;
pdata->duplex = DUPLEX_FULL;
pdata->switch_data = &ath79_switch_data;
+
+ ath79_switch_data.phy_poll_mask |= BIT(4);
}
pdata->has_gbit = 1;
pdata->is_ar724x = 1;
@@ -776,6 +778,8 @@ void __init ath79_register_eth(unsigned int id)
pdata->speed = SPEED_1000;
pdata->duplex = DUPLEX_FULL;
pdata->switch_data = &ath79_switch_data;
+
+ ath79_switch_data.phy_poll_mask |= BIT(4);
}
pdata->has_gbit = 1;
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 43e67557ae..6e90ba4335 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
@@ -19,6 +19,7 @@
struct ag71xx_switch_platform_data {
u8 phy4_mii_en:1;
+ u8 phy_poll_mask;
};
struct ag71xx_platform_data {