]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell10g: support XFI rate matching mode
authorBaruch Siach <baruch@tkos.co.il>
Sun, 28 Jun 2020 07:04:51 +0000 (10:04 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:24:31 +0000 (17:24 -0700)
commite3d747cb5dd6f264c8b323b54381dffb69a76502
tree89085db307feae804b51fc0091198ea321aab9b9
parent628de95596e5d40b8652318b682286194474af55
net: phy: marvell10g: support XFI rate matching mode

When the hardware MACTYPE hardware configuration pins are set to "XFI
with Rate Matching" the PHY interface operate at fixed 10Gbps speed. The
MAC buffer packets in both directions to match various wire speeds.

Read the MAC Type field in the Port Control register, and set the MAC
interface speed accordingly.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c