On 10.07.2018 21:10, Andrew Lunn wrote:
>> +static int r8169_mdio_read_reg(struct mii_bus *mii_bus, int phyaddr, int
>> phyreg)
>> +{
>> +struct rtl8169_private *tp = mii_bus->priv;
>> +
>> +if (phyaddr > 0)
>> +return -EINVAL;
>
> Please use ENODEV.
>
> The mdio bus is scann
> +static int r8169_mdio_read_reg(struct mii_bus *mii_bus, int phyaddr, int
> phyreg)
> +{
> + struct rtl8169_private *tp = mii_bus->priv;
> +
> + if (phyaddr > 0)
> + return -EINVAL;
Please use ENODEV.
The mdio bus is scanned for devices in __mdiobus_register(). If
mdiobus_s
Add basic phylib support to r8169. All now unneeded old PHY handling code
will be removed in subsequent patches.
Signed-off-by: Heiner Kallweit
---
v2:
- return error in mdio ops if phyaddr > 0
- advertise pause modes
---
drivers/net/ethernet/realtek/Kconfig | 1 +
drivers/net/ethernet/realtek