Re: [PATCH net v3 2/3] libphy: Add stubs to hook IEEE MMD Register reads and writes
From: Vince Bridgers <hidden>
Date: 2014-06-28 19:47:06
On Mon, Jun 23, 2014 at 7:29 AM, Sergei Shtylyov [off-list ref] wrote:
Hello. On 06/23/2014 04:21 AM, Vince Bridgers wrote:quoted
The Micrel ksz9021 PHY does not support standard IEEE standard MMD extended register access, therefore requires stubs to fail the read register method and do nothing for the write register method when libphy attempts to read and/or configure Energy Efficient Ethernet features in PHYS that do support those features. This problem was observed on an Altera Cyclone V SOC development kit that uses the Synopsys EMAC and the Micrel ksz9021 PHY. This patch was tested on the same board, and Energy Efficient Ethernet is now disabled as expected since the Micrel PHY does not support that feature.quoted
Signed-off-by: Vince Bridgers <redacted> --- V3: Remove unnecessary returns from void functions. V2: Split libphy and Micrel specific changes into 2 patches based on review comments --- drivers/net/phy/micrel.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-)quoted
diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index bc7c7d2..daf8bab 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c@@ -417,7 +417,26 @@ static int ksz8873mll_read_status(struct phy_device*phydev) static int ksz8873mll_config_aneg(struct phy_device *phydev) { - return 0;Eh? The function returns *int* and you're removing the only *return* statement?
Oops, thanks for catching this. I'll address and respin.
quoted
+}WBR, Sergei