Re: [PATCH v8 2/3] net: phy: Add helper for fixing RGMII PHY mode based on internal mac delay
Simon Horman <[email protected]>
| Newsgroups | dev.linux.lists.sophgo,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
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) <[email protected]> > Signed-off-by: Inochi Amaoto <[email protected]> > Reviewed-by: Maxime Chevallier <[email protected]> Reviewed-by: Simon Horman <[email protected]>