[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <f84950fd-a6cd-205b-a3d2-19ccad9de7d0@gmail.com>
Date: Wed, 3 Apr 2019 23:13:18 +0200
From: Heiner Kallweit <hkallweit1@...il.com>
To: Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH net-next v2 0/2] net: phy: use generic PHY ability readers if
callback get_features isn't set
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
Powered by blists - more mailing lists