]> git.baikalelectronics.ru Git - uboot.git/commit
net: phy: realtek: Add tx/rx delay config for 8211e
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Oct 2021 02:07:32 +0000 (21:07 -0500)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 23 Nov 2021 07:57:56 +0000 (09:57 +0200)
commita24fed01fe9906240cee118c49b5a0217c863034
tree6aeb94ed47e252474b0917a13505e1c533434629
parent584de60d8d8d120f680f22feb96e5f7616b1d48e
net: phy: realtek: Add tx/rx delay config for 8211e

Some boards need to change the tx/rx delay config in order for
gigabit Ethernet to work.

In Linux commit bbc4d71d6354 ("net: phy: realtek: fix rtl8211e rx/tx
delay config"), Realtek documented the bits for overriding the delays
from the hardware straps.

Copy the logic from linux, so the delay config is set from the PHY's
interface type (the phy-mode property in the device tree).

This removes the need for a one-off workaround for the Pine A64+ board.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
configs/pine64_plus_defconfig
drivers/net/phy/Kconfig
drivers/net/phy/realtek.c