]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: mtk_eth_soc: move and correct link timer programming
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 27 Oct 2022 13:11:23 +0000 (14:11 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 04:48:31 +0000 (21:48 -0700)
commit3027d89f87707e7f3e5b683e0d37a32afb5bde96
tree755b2d61740a9f805083b054059a056eaa932f63
parentc125c66ea71b9377ae2478c4f1b87b180cc5c6ef
net: mtk_eth_soc: move and correct link timer programming

Program the link timer appropriately for the interface mode being
used, using the newly introduced phylink helper that provides the
nanosecond link timer interval.

The intervals are 1.6ms for SGMII based protocols and 10ms for
802.3z based protocols.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_sgmii.c