]> git.baikalelectronics.ru Git - kernel.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)
commit87ec027ab0a909afd9f63d0591d256ad052ddb78
treef9f9ff10aa2f1169ed88c1346a93686af23f94b3
parent402be029945ca7281805f925b7c9213970add8c4
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