]> git.itanic.dy.fi Git - linux-stable/commit
net: phy: aquantia: Add support for rate matching
authorSean Anderson <sean.anderson@seco.com>
Tue, 20 Sep 2022 22:12:35 +0000 (18:12 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Sep 2022 10:56:18 +0000 (11:56 +0100)
commit3c42563b30417afc8855a3b4c1b38c2f36f78657
treef3f3c4f1eaefb00d82b712c0e0c6bd6fb920514b
parent7de26bf144f6a72858ab60afb2bd2b43265ee0ad
net: phy: aquantia: Add support for rate matching

This adds support for rate matching for phys similar to the AQR107. We
assume that all phys using aqr107_read_status support rate matching.
However, it could be possible to determine support based on the firmware
revision if there are phys discovered which do not support rate
matching.  However, as rate matching is advertised in the datasheets for
these phys, I suspect it is supported most boards.

Despite the name, the "config" registers are updated with the current
rate matching method (if any). Because they appear to be updated
automatically, I don't know if these registers can be used to disable
rate matching.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/aquantia_main.c