From bdc0750191660af3ecefbc52327978af1cd93407 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 18 Jan 2015 00:53:53 +0000 Subject: 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 SVN-Revision: 44021 --- target/linux/generic/files/drivers/net/phy/ar8327.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'target/linux/generic/files/drivers/net/phy/ar8327.h') diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.h b/target/linux/generic/files/drivers/net/phy/ar8327.h index c606972..1877f00 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 -- cgit v1.1