Meanwhile we have generic functions for reading the abilities of Clause 22 / 45 PHY's. This allows to use them as fallback in case callback get_features isn't set. Benefit is the reduction of boilerplate code in PHY drivers.
v2: - adjust a comment in patch 1 to match the code Heiner Kallweit (2): net: phy: allow a PHY driver to define neither features nor get_features net: phy: realtek: remove setting callback get_features and use phylib default drivers/net/phy/phy_device.c | 19 ++++++++++++------- drivers/net/phy/realtek.c | 10 ---------- 2 files changed, 12 insertions(+), 17 deletions(-) -- 2.21.0