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)
commitd6a879e35aa38450636bd68100e041ee2f66cbb7
treec5f9d96d2609c52f07d3d62e34b44d6b8e6fd61b
parentbc2ddd55171ec84fa46f41c2734f7a8a87a64156
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43356 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c