]> www.infradead.org Git - users/hch/misc.git/commit
net: phy: Add helper for getting tx amplitude gain
authorDimitri Fedrau <dimitri.fedrau@liebherr.com>
Fri, 14 Feb 2025 14:14:10 +0000 (15:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 18 Feb 2025 00:40:42 +0000 (16:40 -0800)
commit961ee5aeea048aa292f28d61f3a96a48554e91af
tree6da9e472c6ca24fdcbde0ab84923a4bc313e549c
parent7fff5d958648eadec1b164dc5a61a5644117d329
net: phy: Add helper for getting tx amplitude gain

Add helper which returns the tx amplitude gain defined in device tree.
Modifying it can be necessary to compensate losses on the PCB and
connector, so the voltages measured on the RJ45 pins are conforming.

Signed-off-by: Dimitri Fedrau <dimitri.fedrau@liebherr.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250214-dp83822-tx-swing-v5-2-02ca72620599@liebherr.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy_device.c
include/linux/phy.h