ar8216: Fix issue with autoneg being disabled under 3.14, revert 43332
authorFelix Fietkau <nbd@openwrt.org>
Mon, 24 Nov 2014 09:33:48 +0000 (09:33 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 24 Nov 2014 09:33:48 +0000 (09:33 +0000)
commit35902404fce9e8007a69ba893a8a8e569494209e
treef01710e69239b903b2045c578856973867e36f77
parenta2768bd9e0efb430e864fe5faf5070ea724e2797
ar8216: Fix issue with autoneg being disabled under 3.14, revert 43332

Patch reverts 43332 which seems to cause issues with VLAN functionality.
Add a specific check to check whether ANEG is still enabled and re-enable
it if necessary. Disable generic phy soft reset for kernel >=3.16.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
SVN-Revision: 43356
target/linux/generic/files/drivers/net/phy/ar8216.c