]> 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)
commit3f618fe21507e6d40a8616fa1d46643e18c79a6f
tree89085db307feae804b51fc0091198ea321aab9b9
parent664152571058dd034d599228be0a0e5d8acc4679
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