]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell10g: support all rate matching modes
authorMarek Behún <kabel@kernel.org>
Wed, 7 Apr 2021 20:22:45 +0000 (22:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Apr 2021 20:15:33 +0000 (13:15 -0700)
commit12bc6891cf52a0304ae0db258a106f58525e877c
tree9cbab377603b510c462c2e41c94d6e3e6a04fee6
parent22bcd74ed36659293ad5b8cb0aa3515b90b02d34
net: phy: marvell10g: support all rate matching modes

Add support for all rate matching modes for 88X3310 (currently only
10gbase-r is supported, but xaui and rxaui can also be used).

Add support for rate matching for 88E2110 (on 88E2110 the MACTYPE
register is at a different place).

Currently rate matching mode is selected by strapping pins (by setting
the MACTYPE register). There is work in progress to enable this driver
to deduce the best MACTYPE from the knowledge of which interface modes
are supported by the host, but this work is not finished yet.

Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell10g.c