]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: micrel: expose KSZ87xx low-loss cable tunables
authorFidelio Lawson <lawson.fidelio@gmail.com>
Tue, 9 Jun 2026 16:19:57 +0000 (18:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Jun 2026 22:47:56 +0000 (15:47 -0700)
commita1ee1b9beb7dbbc1cd52b08471ccaf4b8399d9eb
tree688b0db86047dd53d6c98e63b97b5120e4219121
parent13655144ddcad532c4e9338788041654a54e5c2f
net: phy: micrel: expose KSZ87xx low-loss cable tunables

Add support for the KSZ87xx low-loss cable PHY tunables in the Micrel
PHY driver by implementing get_tunable and set_tunable callbacks.

These callbacks expose vendor-specific PHY tunables used to control the
KSZ87xx embedded PHY receiver behavior when operating with short or
low-loss Ethernet cables. The tunables provide:

- a boolean short-cable preset applying known good settings;
- an integer LPF bandwidth control;
- an integer DSP EQ initial value control.

The Micrel PHY driver forwards these tunables via standard phy_read() /
phy_write() operations, which are virtualized by the KSZ8 DSA driver and
translated into the appropriate indirect switch register accesses.

Reviewed-by: Marek Vasut <marex@nabladev.com>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Signed-off-by: Fidelio Lawson <fidelio.lawson@exotec.com>
Link: https://patch.msgid.link/20260609-ksz87xx_errata_low_loss_connections-v10-3-9ba4418cf3db@exotec.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c