]> 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)
commit14a1523fa48f7a90c3a4b6cc819668ff3efd6567
tree1ae8740bab1127fff6797b0fbee47e75518a010f
parent28b4ad96e912ae8f8a66dedab994aba3aeaa66a1
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