]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: atlantic: implement phy downshift feature
authorIgor Russkikh <irusskikh@marvell.com>
Mon, 5 Oct 2020 15:39:38 +0000 (18:39 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Oct 2020 13:16:01 +0000 (06:16 -0700)
commite193c3ab8302908b1378fc0606be561e976d2532
treee09f7b39510d0f3808cb2e32a62306303e4a782a
parentc6db31ffe202c3120147e9f3455a4dbc90546d39
net: atlantic: implement phy downshift feature

PHY downshift allows phy to try renegotiate if link is unstable
and can carry higher speed.

AQC devices has integrated PHY which is controlled by MAC firmware.
Thus, driver defines new ethtool callbacks to implement phy tunables
via netdev.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_ethtool.c
drivers/net/ethernet/aquantia/atlantic/aq_hw.h
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
drivers/net/ethernet/aquantia/atlantic/aq_nic.h
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c
drivers/net/ethernet/aquantia/atlantic/hw_atl2/hw_atl2_utils_fw.c