]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: dp83tg720: Add cable testing support
authorOleksij Rempel <o.rempel@pengutronix.de>
Mon, 12 Aug 2024 07:30:46 +0000 (09:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 16 Aug 2024 17:16:26 +0000 (10:16 -0700)
commit20f77dc7247138c0c1463920f6d9829593804848
treecf6997d10a4758b9f14dcc94e1220ea02c9ce7aa
parent9e7c1a9b90334d3c87467f0204bf2bcd9794c22c
net: phy: dp83tg720: Add cable testing support

Introduce cable testing support for the DP83TG720 PHY. This implementation
is based on the "DP83TG720S-Q1: Configuring for Open Alliance Specification
Compliance (Rev. B)" application note.

The feature has been tested with cables of various lengths:
- No cable: 1m till open reported.
- 5 meter cable: reported properly.
- 20 meter cable: reported as 19m.
- 40 meter cable: reported as cable ok.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://patch.msgid.link/20240812073046.1728288-3-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/Kconfig
drivers/net/phy/dp83tg720.c