Re: [PATCH net-next v3 2/2] net: stmmac: dwmac-socfpga: Add support for Agilex5 TSN GMAC with FPGA converter
From: Andrew Lunn
Date: Thu Dec 03 2026 - 07:54:34 EST
> +static void socfpga_agilex5_tsn_gmac_setup_plat_dat(struct socfpga_dwmac *dwmac)
> +{
> + struct plat_stmmacenet_data *plat_dat = dwmac->plat_dat;
> +
> + socfpga_agilex5_setup_plat_dat(dwmac);
> +
> + /* The FPGA GMII-to-RGMII converter is only in the RGMII path. It
> + * presents GMII to the MAC and adds both RGMII delays, so only
> + * phy-mode "rgmii-id" describes the board correctly.
> + */
> + if (!phy_interface_mode_is_rgmii(plat_dat->phy_interface))
> + return;
Maybe add another check here. If it is one of the four rgmii but not
RGMII_ID, you know it will not work, so can return EINVAL.
Andrew