aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/ar8327.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-18 00:53:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-18 00:53:53 +0000
commitbdc0750191660af3ecefbc52327978af1cd93407 (patch)
treed9c3e27c665764f79bdc79a464d786909bd808d7 /target/linux/generic/files/drivers/net/phy/ar8327.h
parent2f43d3dcba06977877fcab7682be8ecd22c1df5d (diff)
downloadupstream-bdc0750191660af3ecefbc52327978af1cd93407.tar.gz
upstream-bdc0750191660af3ecefbc52327978af1cd93407.tar.bz2
upstream-bdc0750191660af3ecefbc52327978af1cd93407.zip
ar8216: introduce enable_eee swconfig attribute to control 802.3az EEE per port
Users reported network issues with AR8327 which turned out to be caused by EEE not working correctly with certain link partners (ticket 14597). The workaround was to disable EEE on all ports (changeset 41577). The issue was with certain link partners only, therefore this patch allows to control usage of EEE per port via swconfig. Still the default is to initially disable EEE on all ports. Successfully tested on a TL-WDR4900 (AR8327 rev.4) Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 44021
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8327.h')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8327.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.h b/target/linux/generic/files/drivers/net/phy/ar8327.h
index c606972a04..1877f00c97 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8327.h
+++ b/target/linux/generic/files/drivers/net/phy/ar8327.h
@@ -219,6 +219,9 @@ struct ar8327_data {
struct ar8327_led **leds;
unsigned int num_leds;
+
+ /* all fields below are cleared on reset */
+ bool eee[AR8XXX_NUM_PHYS];
};
#endif