net: thunderx: Fix PHY autoneg for SGMII QLM mode
authorThanneeru Srinivasulu <tsrinivasulu@cavium.com>
Wed, 24 May 2017 01:53:48 +0000 (21:53 -0400)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:57:41 +0000 (02:57 +0000)
commitbf03af20cc0200ce39a00eafc645a0c50deadb70
tree53da160cde56fcfc7b6fb36239f218b434474f3e
parent33b6197b85a372f22dcf956afefea50880ccb68e
net: thunderx: Fix PHY autoneg for SGMII QLM mode

[ Upstream commit 075ad765ef7541b2860de8408c165a92b78aefa3 ]

This patch fixes the case where there is no phydev attached
to a LMAC in DT due to non-existance of a PHY driver or due
to usage of non-stanadard PHY which doesn't support autoneg.
Changes dependeds on firmware to send correct info w.r.t
PHY and autoneg capability.

This patch also covers a case where a 10G/40G interface is used
as a 1G with convertors with Cortina PHY in between.

Signed-off-by: Thanneeru Srinivasulu <tsrinivasulu@cavium.com>
Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h