]> git.itanic.dy.fi Git - linux-stable/commit
net: phy: dp83822: Fix RGMII TX delay configuration
authorTim Pambor <tp@osasysteme.de>
Tue, 5 Mar 2024 11:06:08 +0000 (12:06 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Mar 2024 04:33:44 +0000 (20:33 -0800)
commitc8a5c731fd1223090af57da33838c671a7fc6a78
tree7c268009e17d5a607bc35a48a4086595b2c267f2
parent9831e35efbe7d02f7ac2d887ab60cbf65479af73
net: phy: dp83822: Fix RGMII TX delay configuration

The logic for enabling the TX clock shift is inverse of enabling the RX
clock shift. The TX clock shift is disabled when DP83822_TX_CLK_SHIFT is
set. Correct the current behavior and always write the delay configuration
to ensure consistent delay settings regardless of bootloader configuration.

Reference: https://www.ti.com/lit/ds/symlink/dp83822i.pdf p. 69

Fixes: 8095295292b5 ("net: phy: DP83822: Add setting the fixed internal delay")
Signed-off-by: Tim Pambor <tp@osasysteme.de>
Link: https://lore.kernel.org/r/20240305110608.104072-1-tp@osasysteme.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/dp83822.c