[PATCH v3 1/3] net/axgbe: add external PHY read/write functions

Stephen Hemminger stephen at networkplumber.org
Thu Feb 26 20:09:33 CET 2026


On Thu, 26 Feb 2026 22:16:36 +0530
Ashok Kumar Natarajan <ashokkumar.natarajan at amd.com> wrote:

> +	ret = pdata->hw_if.read_ext_mii_regs_c22(pdata,
> +			phy_data->mdio_addr, reg, value);
> +	if (ret)
> +		PMD_DRV_LOG_LINE(ERR, "mdio read failed %s",
> +				strerror(ret));

Shouldn't this be strerror(-ret) here?
It looks like the driver uses the negative errno values to indicate errors.


More information about the dev mailing list