]> git.karo-electronics.de Git - linux-beck.git/commit
net: thunderx: Fix PHY autoneg for SGMII QLM mode
authorThanneeru Srinivasulu <tsrinivasulu@cavium.com>
Wed, 8 Feb 2017 12:39:00 +0000 (18:09 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 20:47:37 +0000 (15:47 -0500)
commit075ad765ef7541b2860de8408c165a92b78aefa3
treef9f9ff10aa2f1169ed88c1346a93686af23f94b3
parent382e1eea2d983cd2343482c6a638f497bb44a636
net: thunderx: Fix PHY autoneg for SGMII QLM mode

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>
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h