]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:40 +0000 (18:19 -0400)
commit3721c63d300289a9ab69abe795d8112465f492db
tree0ebcc1c16728fbb67fb5307afd59a29f5b53373e
parent6dda052ee1e5d57c4fe70d425a05677f7af832ad
net: phy: dp83822: Fix RGMII TX delay configuration

[ Upstream commit c8a5c731fd1223090af57da33838c671a7fc6a78 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/dp83822.c