2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/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
adin1100.c net: phy: Allow loopback speed selection for PHY drivers 2025-03-20 08:45:08 +01:00
adin.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08: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_rust.rs rust: net::phy unified read/write API for C22 and C45 registers 2024-08-30 10:27:35 +01:00
ax88796b.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08: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 net: phy: fill in missing MODULE_DESCRIPTION()s 2023-11-01 21:50:56 -07:00
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
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 net: phy: bcm-phy-lib: Implement BroadR-Reach link modes 2024-07-14 20:38:35 -07:00
bcm-phy-ptp.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04: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_reg.h
dp83640.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
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
marvell10g.c net: phy: marvell10g: Use HWMON_CHANNEL_INFO macro to simplify code 2025-02-11 17:07:02 -08: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
mdio_bus.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
mdio_device.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
mdio_devres.c net: fill in MODULE_DESCRIPTION()s for mdio_devres 2024-02-15 08:03:46 -08:00
mdio-boardinfo.c
mdio-boardinfo.h
mdio-open-alliance.h
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_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
microchip.c net: phy: Constify struct mdio_device_id 2025-01-14 15:01:32 -08:00
mii_timestamper.c
motorcomm.c net: phy: Add driver for Motorcomm yt8821 2.5G ethernet phy 2024-09-05 15:21:12 +02:00
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 net: phy: nxp-c45-tja11xx: implement mdo_insert_tx_tag 2023-12-27 13:08:10 +00:00
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 phy: Add Open Alliance helpers for the PHY framework 2024-08-16 10:16:26 -07:00
open_alliance_helpers.h phy: Add Open Alliance helpers for the PHY framework 2024-08-16 10:16:26 -07: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 net: phy: Introduce ethernet link topology representation 2024-08-23 13:04:34 +01:00
phy_package.c net: phy: remove remaining PHY package related definitions from phy.h 2025-03-05 19:13:53 -08:00
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
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 net: sfp: Add helper to return the SFP bus name 2024-08-23 13:04:34 +01:00
sfp.c net: sfp: add quirk for FS SFP-10GM-T copper SFP+ module 2025-03-03 17:22:03 -08:00
sfp.h net: sfp: Remove unused function declaration sfp_link_configure() 2023-08-07 08:53:55 +01:00
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 net: phy: provide phylib stubs for hardware timestamping operations 2023-08-02 19:11:06 -07:00
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