[PATCH v8 2/3] net: phy: Add helper for fixing RGMII PHY mode based on internal mac delay
Simon Horman
horms at kernel.org
Fri Nov 14 01:15:20 PST 2025
On Fri, Nov 14, 2025 at 08:38:04AM +0800, Inochi Amaoto wrote:
> The "phy-mode" property of devicetree indicates whether the PCB has
> delay now, which means the mac needs to modify the PHY mode based
> on whether there is an internal delay in the mac.
>
> This modification is similar for many ethernet drivers. To simplify
> code, define the helper phy_fix_phy_mode_for_mac_delays(speed, mac_txid,
> mac_rxid) to fix PHY mode based on whether mac adds internal delay.
>
> Suggested-by: Russell King (Oracle) <linux at armlinux.org.uk>
> Signed-off-by: Inochi Amaoto <inochiama at gmail.com>
> Reviewed-by: Maxime Chevallier <maxime.chevallier at bootlin.com>
Reviewed-by: Simon Horman <horms at kernel.org>
More information about the linux-arm-kernel
mailing list