mirror-linux/drivers/phy/ti
Michael Walle a22d3b0d49 phy: ti: gmii-sel: Always write the RGMII ID setting
Some SoCs are just validated with the TX delay enabled. With commit
ca13b249f2 ("net: ethernet: ti: am65-cpsw: fixup PHY mode for fixed
RGMII TX delay"), the network driver will patch the delay setting on the
fly assuming that the TX delay setting is fixed. In reality, the TX
delay is configurable and just skipped in the documentation. There are
bootloaders, which will disable the TX delay and this will lead to a
transmit path which doesn't add any delays at all.
Fix that by always writing the RGMII_ID setting and report an error for
unsupported RGMII delay modes.

This is safe to do and shouldn't break any boards in mainline because
the fixed delay is only introduced for gmii-sel compatibles which are
used together with the am65-cpsw-nuss driver and also contains the
commit above.

Fixes: ca13b249f2 ("net: ethernet: ti: am65-cpsw: fixup PHY mode for fixed RGMII TX delay")
Signed-off-by: Michael Walle <mwalle@kernel.org>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://lore.kernel.org/r/20250819065622.1019537-1-mwalle@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2025-09-01 22:00:58 +05:30
..
Kconfig
Makefile
phy-am654-serdes.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-da8xx-usb.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-dm816x-usb.c phy: Switch back to struct platform_driver::remove() 2024-10-17 20:33:03 +05:30
phy-gmii-sel.c phy: ti: gmii-sel: Always write the RGMII ID setting 2025-09-01 22:00:58 +05:30
phy-j721e-wiz.c phy-for-6.13 2024-11-27 13:33:43 -08:00
phy-omap-control.c phy: Use device_get_match_data() 2023-10-13 15:45:40 +05:30
phy-omap-usb2.c phy: ti: omap-usb2: fix device leak at unbind 2025-08-12 21:30:00 +05:30
phy-ti-pipe3.c phy: ti-pipe3: fix device leak at unbind 2025-08-12 21:30:00 +05:30
phy-tusb1210.c power: supply: Change usb_types from an array into a bitmask 2024-09-03 23:20:28 +02:00
phy-twl4030-usb.c phy: drop probe registration printks 2025-06-16 22:54:21 +05:30