OSDN Git Service

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)
commite11703330a5df48e1fd4167e4d22a102e517253e
tree89085db307feae804b51fc0091198ea321aab9b9
parent10780291724bc11da5ed9a83be7f755e4ab3c554
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