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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jun 2017 04:41:51 +0000 (06:41 +0200)
commitd7b2b380c08d7e9b6caf1584656b98c47eb665f2
tree16f0dcf13753abe7840876ed027c82ede1aa06b9
parentbaaa84b43608a922e6be101982388e50aa0a4422
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