]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: dsa: vsc73xx: make RGMII delays configurable
authorPawel Dembicki <paweldembicki@gmail.com>
Mon, 29 Jul 2024 21:01:59 +0000 (23:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2024 09:26:28 +0000 (10:26 +0100)
commit3b91b03271c5dbf156301ff5028b36925f00e102
treee79779b5a0bcc585bb4d2d10606a18318c3553ba
parent3fafd92edbeb523bad6aa63ab7118112d533c9ec
net: dsa: vsc73xx: make RGMII delays configurable

This patch switches hardcoded RGMII transmit/receive delay to
a configurable value. Delay values are taken from the properties of
the CPU port: 'tx-internal-delay-ps' and 'rx-internal-delay-ps'.

The default value is configured to 2.0 ns to maintain backward
compatibility with existing code.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/vitesse-vsc73xx-core.c