]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phy: dp83867: use 2ns delay if not specified in DTB
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Wed, 7 May 2025 10:13:21 +0000 (12:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 13 May 2025 01:43:35 +0000 (18:43 -0700)
commit6bf78849371d392d2b276eba00d176062c8431db
treece6b95bde516129e36aab6486bf0df6a871f1e4b
parentcc7734e03e81dfed01156be8c698899dc42d2400
net: phy: dp83867: use 2ns delay if not specified in DTB

Most PHY drivers default to a 2ns delay if internal delay is requested
and no value is specified. Having a default value makes sense, as it
allows a Device Tree to only care about board design (whether there are
delays on the PCB or not), and not whether the delay is added on the MAC
or the PHY side when needed.

Whether the delays are actually applied is controlled by the
DP83867_RGMII_*_CLK_DELAY_EN flags, so the behavior is only changed in
configurations that would previously be rejected with -EINVAL.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Link: https://patch.msgid.link/e2509b248a11ee29ea408a50c231da4c1fa0863b.1746612711.git.matthias.schiffer@ew.tq-group.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/dp83867.c