]> 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)
commit42aae141e536cb6898c4d6c8d06081110489a794
tree9cbab377603b510c462c2e41c94d6e3e6a04fee6
parent52e056903a463f23281677c46d4632525824aecd
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