[PATCH v2 3/3] net: stmmac: dwmac-sophgo: Add phy interface filter

Andrew Lunn andrew at lunn.ch
Mon Oct 20 11:52:44 PDT 2025


> +	data = device_get_match_data(&pdev->dev);
> +	if (data && data->has_internal_rx_delay)
> +		plat_dat->phy_interface = phy_fix_phy_mode_for_mac_delays(plat_dat->phy_interface,
> +									  false, true);

You should check the return value and if it is _NA, return -EIVAL.

    Andrew

---
pw-bot: cr



More information about the linux-arm-kernel mailing list