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

Stephen Hemminger
2026-02-26T19:09:40Z

On Thu, 26 Feb 2026 22:16:36 +0530
Ashok Kumar Natarajan <ashokkumar.natarajan@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.