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/ethernet/stmicro/stmmac
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
..
chain_mode.c
common.h net: stmmac: Correct usage of maximum queue number macros 2025-02-24 14:24:14 -08:00
descs_com.h
descs.h
dwmac4_core.c net: stmmac: remove old EEE methods 2025-02-07 11:56:10 -08:00
dwmac4_descs.c net: stmmac: Add DW QoS Eth v4/v5 ip payload error statistics 2024-10-09 19:48:58 -07:00
dwmac4_descs.h net: stmmac: Relocate extern declarations in common.h and hwif.h 2024-12-10 18:24:36 -08:00
dwmac4_dma.c net: stmmac: dwmac4: Fix the MTL_OP_MODE_*_MASK operation 2024-11-11 16:45:23 -08:00
dwmac4_dma.h net: stmmac: dwmac4: Fix high address display by updating reg_space[] from register values 2024-10-29 11:29:40 +01:00
dwmac4_lib.c net: stmmac: dwmac4: Receive Watchdog Timeout is not in abnormal interrupt summary 2024-11-11 16:45:23 -08:00
dwmac4.h net: stmmac: use common LPI_CTRL_STATUS bit definitions 2025-02-07 11:56:10 -08:00
dwmac5.c net: stmmac: Introduce separate files for FPE implementation 2024-11-03 15:31:23 -08:00
dwmac5.h net: stmmac: Introduce separate files for FPE implementation 2024-11-03 15:31:23 -08:00
dwmac100_core.c net: stmmac: include linux/io.h rather than asm/io.h 2024-05-30 18:30:11 -07:00
dwmac100_dma.c net: stmmac: Move the atds flag to the stmmac_dma_cfg structure 2024-08-13 09:48:00 +02:00
dwmac100.h
dwmac1000_core.c net: stmmac: Use str_enabled_disabled() helper 2025-02-18 18:12:12 -08:00
dwmac1000_dma.c net: stmmac: Export dwmac1000_dma_ops 2024-08-13 09:48:00 +02:00
dwmac1000.h net: stmmac: use common LPI_CTRL_STATUS bit definitions 2025-02-07 11:56:10 -08:00
dwmac_dma.h net: stmmac: Add multi-channel support 2024-08-13 09:48:00 +02:00
dwmac_lib.c net: stmmac: Add multi-channel support 2024-08-13 09:48:00 +02:00
dwmac-anarion.c net: stmmac: anarion: remove of_get_phy_mode() 2025-03-18 15:53:15 +01:00
dwmac-dwc-qos-eth.c net: stmmac: dwc-qos: Add FSD EQoS support 2025-03-06 15:30:33 -08:00
dwmac-generic.c net: stmmac: add support for dwmac 3.72a 2024-11-05 17:45:17 -08:00
dwmac-imx.c net: stmmac: imx: use generic stmmac_set_clk_tx_rate() 2025-02-28 10:20:48 -08:00
dwmac-ingenic.c net: ethernet: Switch back to struct platform_driver::remove() 2024-10-04 16:39:56 -07:00
dwmac-intel-plat.c net: stmmac: intel: use generic stmmac_set_clk_tx_rate() 2025-02-28 10:20:47 -08:00
dwmac-intel.c stmmac: intel: Fix warning message for return value in intel_tsn_lane_is_available() 2025-03-17 21:09:22 +01:00
dwmac-intel.h net: stmmac: configure SerDes according to the interface mode 2025-03-05 19:02:47 -08:00
dwmac-ipq806x.c net: stmmac: ipq806x: remove of_get_phy_mode() 2025-03-18 15:53:15 +01:00
dwmac-loongson1.c
dwmac-loongson.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-03-06 13:03:35 -08:00
dwmac-lpc18xx.c net: ethernet: Switch back to struct platform_driver::remove() 2024-10-04 16:39:56 -07:00
dwmac-mediatek.c net: stmmac: mediatek: remove of_get_phy_mode() 2025-03-18 15:53:15 +01:00
dwmac-meson8b.c net: stmmac: meson8b: remove of_get_phy_mode() 2025-03-18 15:53:15 +01:00
dwmac-meson.c net: stmmac: meson: switch to use set_clk_tx_rate() hook 2025-02-28 10:20:48 -08:00
dwmac-qcom-ethqos.c net: stmmac: qcom-ethqos: remove of_get_phy_mode() 2025-03-18 15:53:15 +01:00
dwmac-rk.c net: stmmac: dwmac-rk: Provide FIFO sizes for DWMAC 1000 2025-03-19 18:30:34 +01:00
dwmac-rzn1.c net: ethernet: Switch back to struct platform_driver::remove() 2024-10-04 16:39:56 -07:00
dwmac-s32.c net: stmmac: s32: use generic stmmac_set_clk_tx_rate() 2025-02-28 10:20:47 -08:00
dwmac-socfpga.c net: stmmac: "speed" passed to fix_mac_speed is an int 2025-02-19 18:57:28 -08:00
dwmac-sophgo.c net: stmmac: Add glue layer for Sophgo SG2044 SoC 2025-03-07 19:06:36 -08:00
dwmac-starfive.c net: stmmac: starfive: use PHY capability for TX clock stop 2025-03-19 18:06:32 +01:00
dwmac-sti.c net: stmmac: sti: remove of_get_phy_mode() 2025-03-18 15:53:15 +01:00
dwmac-stm32.c net: stmmac: stm32: use PHY capability for TX clock stop 2025-03-19 18:06:32 +01:00
dwmac-sun8i.c net: stmmac: sun8i: remove of_get_phy_mode() 2025-03-18 15:53:15 +01:00
dwmac-sunxi.c net: stmmac: sunxi: remove of_get_phy_mode() 2025-03-18 15:53:16 +01:00
dwmac-tegra.c net: stmmac: dwmac-tegra: Read iommu stream id from device tree 2025-01-09 08:20:34 -08:00
dwmac-thead.c net: stmmac: thead: switch to use set_clk_tx_rate() hook 2025-02-28 10:20:48 -08:00
dwmac-visconti.c net: stmmac: "speed" passed to fix_mac_speed is an int 2025-02-19 18:57:28 -08:00
dwxgmac2_core.c net: stmmac: remove old EEE methods 2025-02-07 11:56:10 -08:00
dwxgmac2_descs.c net: stmmac: Batch set RX OWN flag and other flags 2024-09-05 11:19:07 +02:00
dwxgmac2_dma.c net: stmmac: Move the atds flag to the stmmac_dma_cfg structure 2024-08-13 09:48:00 +02:00
dwxgmac2.h net: stmmac: use common LPI_CTRL_STATUS bit definitions 2025-02-07 11:56:10 -08:00
dwxlgmac2.h
enh_desc.c
hwif.c net: stmmac: Drop redundant dwxgmac_tc_ops variable 2024-12-13 19:32:29 -08:00
hwif.h net: stmmac: remove old EEE methods 2025-02-07 11:56:10 -08:00
Kconfig net: stmmac: Add glue layer for Sophgo SG2044 SoC 2025-03-07 19:06:36 -08:00
Makefile net: stmmac: Add glue layer for Sophgo SG2044 SoC 2025-03-07 19:06:36 -08:00
mmc_core.c net: stmmac: mmc_core: Add GMAC mmc tx/rx missing statistics 2024-04-08 15:19:50 +01:00
mmc.h net: stmmac: Relocate extern declarations in common.h and hwif.h 2024-12-10 18:24:36 -08:00
norm_desc.c
ring_mode.c
stmmac_est.c net: stmmac: est: Per Tx-queue error count for HLBF 2024-01-31 12:24:06 +00:00
stmmac_est.h net: stmmac: Relocate extern declarations in common.h and hwif.h 2024-12-10 18:24:36 -08:00
stmmac_ethtool.c net: stmmac: report EEE error statistics if EEE is supported 2025-01-10 17:51:01 -08:00
stmmac_fpe.c net: stmmac: xgmac: Complete FPE support 2024-11-03 15:31:24 -08:00
stmmac_fpe.h net: stmmac: xgmac: Complete FPE support 2024-11-03 15:31:24 -08:00
stmmac_hwtstamp.c net: stmmac: Configure only the relevant bits for timestamping setup 2024-11-13 18:52:13 -08:00
stmmac_main.c net: stmmac: allow platforms to use PHY tx clock stop capability 2025-03-19 18:06:32 +01:00
stmmac_mdio.c net: stmmac: call xpcs_config_eee_mult_fact() 2025-02-14 13:42:51 -08:00
stmmac_pci.c
stmmac_pcs.h net: stmmac: remove pcs_rane() method 2024-05-30 18:30:10 -07:00
stmmac_platform.c net: stmmac: deprecate "snps,en-tx-lpi-clockgating" property 2025-03-19 18:06:33 +01:00
stmmac_platform.h net: stmmac: unexport stmmac_pltfr_init/exit() 2024-06-20 19:29:34 -07:00
stmmac_ptp.c net: stmmac: Don't include dwmac4 definitions in stmmac_ptp 2024-11-13 18:52:13 -08:00
stmmac_ptp.h net: stmmac: Relocate extern declarations in common.h and hwif.h 2024-12-10 18:24:36 -08:00
stmmac_selftests.c net: phy: Support speed selection for PHY loopback 2025-03-20 08:45:08 +01:00
stmmac_tc.c net: stmmac: Drop redundant dwxgmac_tc_ops variable 2024-12-13 19:32:29 -08:00
stmmac_xdp.c
stmmac_xdp.h net: stmmac: Set page_pool_params.max_len to a precise size 2025-01-16 12:14:22 +01:00
stmmac.h net: stmmac: allow platforms to use PHY tx clock stop capability 2025-03-19 18:06:32 +01:00