3
0
Fork 0
forked from mirrors/linux
kernel/drivers/net/phy
Gerhard Engleder 0d60fd5032 net: phy: Support speed selection for PHY loopback
phy_loopback() leaves it to the PHY driver to select the speed of the
loopback mode. Thus, the speed of the loopback mode depends on the PHY
driver in use.

Add support for speed selection to phy_loopback() to enable loopback
with defined speeds. Ensure that link up is signaled if speed changes
as speed is not allowed to change during link up. Link down and up is
necessary for a new speed.

Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Link: https://patch.msgid.link/20250312203010.47429-3-gerhard@engleder-embedded.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-03-20 08:45:08 +01:00
..
aquantia net: phy: aquantia: Use HWMON_CHANNEL_INFO macro to simplify code 2025-02-11 17:07:03 -08:00
mediatek net: phy: mediatek: use new phy_package_shared getters 2025-03-05 19:13:53 -08:00
mscc net: phy: move PHY package related code from phy.h to phy_package.c 2025-03-05 19:13:53 -08:00
qcom net: phy: qca807x: use new phy_package_shared getters 2025-03-05 19:13:52 -08:00
realtek net: phy: realtek: add defines for shadowed c45 standard registers 2025-02-18 18:04:05 -08:00
adin.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
adin1100.c net: phy: Allow loopback speed selection for PHY drivers 2025-03-20 08:45:08 +01:00
air_en8811h.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
amd.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
ax88796b.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
ax88796b_rust.rs
bcm-cygnus.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
bcm-phy-lib.c net: phy: broadcom: use genphy_c45_an_config_eee_aneg in bcm_config_lre_aneg 2024-11-07 20:31:06 -08:00
bcm-phy-lib.h
bcm-phy-ptp.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
bcm7xxx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
bcm63xx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
bcm87xx.c
bcm54140.c net: phy: move PHY package related code from phy.h to phy_package.c 2025-03-05 19:13:53 -08:00
bcm84881.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
broadcom.c net: phy: broadcom: don't include '<linux/pm_wakeup.h>' directly 2025-02-11 16:36:48 -08:00
cicada.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
cortina.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
davicom.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83tc811.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83td510.c net: phy: dp83td510: introduce LED framework support 2025-02-10 17:49:19 -08:00
dp83tg720.c net: phy: dp83tg720: Add randomized polling intervals for link detection 2025-02-12 10:49:03 -08:00
dp83640.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83640_reg.h
dp83822.c net: phy: dp83822: Add support for changing the transmit amplitude voltage 2025-02-17 16:40:42 -08:00
dp83848.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
dp83867.c net: phy: Allow loopback speed selection for PHY drivers 2025-03-20 08:45:08 +01:00
dp83869.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
et1011c.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
fixed_phy.c
icplus.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
intel-xway.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
Kconfig net: phy: nxp-c45-tja11xx: add support for TJA1121 2025-03-04 17:00:03 -08:00
linkmode.c
lxt.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
Makefile net: phy: Use an internal, searchable storage for the linkmodes 2025-03-18 09:03:11 +01:00
marvell-88q2xxx.c net: phy: marvell-88q2xxx: Init PHY private structure for mv88q211x 2025-02-18 15:33:41 +01:00
marvell-88x2222.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
marvell.c net: phy: Allow loopback speed selection for PHY drivers 2025-03-20 08:45:08 +01:00
marvell10g.c net: phy: marvell10g: Use HWMON_CHANNEL_INFO macro to simplify code 2025-02-11 17:07:02 -08:00
mdio-boardinfo.c
mdio-boardinfo.h
mdio-open-alliance.h
mdio_bus.c
mdio_device.c
mdio_devres.c
meson-gxl.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
micrel.c net: phy: micrel: use new phy_package_shared getters 2025-03-05 19:13:53 -08:00
microchip.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
microchip_rds_ptp.c net: phy: microchip_rds_ptp : Add PEROUT feature library for RDS PTP supported Microchip phys 2025-01-16 17:27:57 -08:00
microchip_rds_ptp.h net: phy: microchip_rds_ptp: Header file library changes for PEROUT 2025-01-16 17:27:56 -08:00
microchip_t1.c net: phy: microchip_t1: Enable pin out specific to lan887x phy for PEROUT signal 2025-01-16 17:27:56 -08:00
microchip_t1s.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
mii_timestamper.c
motorcomm.c
mxl-gpy.c net: phy: Allow loopback speed selection for PHY drivers 2025-03-20 08:45:08 +01:00
national.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
ncn26000.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
nxp-c45-tja11xx-macsec.c
nxp-c45-tja11xx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-03-13 23:08:11 +01:00
nxp-c45-tja11xx.h net: phy: c45-tja11xx: add support for outputting RMII reference clock 2024-10-15 10:44:52 +02:00
nxp-cbtx.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
nxp-tja11xx.c net: phy: tja11xx: enable PHY in sleep mode for TJA1102S 2025-03-07 19:51:04 -08:00
open_alliance_helpers.c
open_alliance_helpers.h
phy-c45.c net: phy: Allow loopback speed selection for PHY drivers 2025-03-20 08:45:08 +01:00
phy-caps.h net: phylink: Use phy_caps to get an interface's capabilities and modes 2025-03-18 09:03:12 +01:00
phy-core.c net: phy: drop phy_settings and the associated lookup helpers 2025-03-18 09:03:11 +01:00
phy.c net: phy: Support speed selection for PHY loopback 2025-03-20 08:45:08 +01:00
phy_caps.c net: phylink: Use phy_caps to get an interface's capabilities and modes 2025-03-18 09:03:12 +01:00
phy_device.c net: phy: Support speed selection for PHY loopback 2025-03-20 08:45:08 +01:00
phy_led_triggers.c net: phy: add phylib-internal.h 2025-02-24 19:14:31 -08:00
phy_link_topology.c
phy_package.c net: phy: remove remaining PHY package related definitions from phy.h 2025-03-05 19:13:53 -08:00
phylib-internal.h net: phy: move PHY package related code from phy.h to phy_package.c 2025-03-05 19:13:53 -08:00
phylib.h net: phy: move PHY package MMD access function declarations from phy.h to phylib.h 2025-03-17 19:07:54 +01:00
phylink.c net: phylink: Use phy_caps to get an interface's capabilities and modes 2025-03-18 09:03:12 +01:00
qsemi.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
qt2025.rs net: phy: qt2025: Fix hardware revision check comment 2025-02-20 17:37:32 -08:00
rockchip.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
sfp-bus.c
sfp.c net: sfp: add quirk for FS SFP-10GM-T copper SFP+ module 2025-03-03 17:22:03 -08:00
sfp.h
smsc.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
spi_ks8995.c net: phy: ks8995: constify 'struct bin_attribute' 2024-12-17 19:00:44 -08:00
ste10Xp.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
stubs.c
swphy.c
swphy.h
teranetics.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
uPD60620.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
vitesse.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
xilinx_gmii2rgmii.c net: phy: Allow loopback speed selection for PHY drivers 2025-03-20 08:45:08 +01:00