]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/net/ethernet/marvell/mvneta.c
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)
commit0c0744fc1dd5b39a7ae053433f3449b7a3de09de
tree1ae8740bab1127fff6797b0fbee47e75518a010f
parentaa5bc7a28d0c5422a0197f021fe5ddcc80f4bfd7
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