ar8216: introduce enable_eee swconfig attribute to control 802.3az EEE per port
authorFelix Fietkau <nbd@openwrt.org>
Sun, 18 Jan 2015 00:53:53 +0000 (00:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 18 Jan 2015 00:53:53 +0000 (00:53 +0000)
commitf128531b2af4f0f4c1b57d1c9661400379908714
treeeb6dc6e467b5884ca68c7d35b50b5dfa76ba9c14
parent92278f63ecfc4d08872719864c23911c52294925
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44021 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h
target/linux/generic/files/drivers/net/phy/ar8327.c
target/linux/generic/files/drivers/net/phy/ar8327.h