]> git.baikalelectronics.ru Git - kernel.git/commit
mvneta: implement ethtool autonegotiation control
authorStas Sergeev <stsp@list.ru>
Wed, 2 Dec 2015 17:35:11 +0000 (20:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 20:18:10 +0000 (15:18 -0500)
commitc346185fdfe7e4e4097c16dba7ff9c8ba9c038a0
tree1ae8740bab1127fff6797b0fbee47e75518a010f
parent9a407127e5e069cc6bb5dae8d5c84e286d14e435
mvneta: implement ethtool autonegotiation control

This patch allows to do
ethtool -s eth0 autoneg off
ethtool -s eth0 autoneg on
to disable or enable autonegotiation at run-time.
Without that functionality, the only way to control the autonegotiation
is to modify the device tree.

This is needed if you plan to use the same kernel with
different ethernet switches, the ones that support the in-band
status and the ones that not.

CC: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
CC: netdev@vger.kernel.org
CC: linux-kernel@vger.kernel.org
Signed-off-by: Stas Sergeev <stsp@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c