[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230331005518.2134652-17-andrew@lunn.ch>
Date: Fri, 31 Mar 2023 02:55:10 +0200
From: Andrew Lunn <andrew@...n.ch>
To: netdev <netdev@...r.kernel.org>
Cc: Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <rmk+kernel@...linux.org.uk>,
Oleksij Rempel <linux@...pel-privat.de>,
Andrew Lunn <andrew@...n.ch>
Subject: [RFC/RFTv3 16/24] net: dsa: b53: Swap to using phydev->eee_active
Rather than calling phy_init_eee() retrieve the same information from
within the phydev structure.
Signed-off-by: Andrew Lunn <andrew@...n.ch>
---
drivers/net/dsa/b53/b53_common.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c
index 3464ce5e7470..5984733e4d0d 100644
--- a/drivers/net/dsa/b53/b53_common.c
+++ b/drivers/net/dsa/b53/b53_common.c
@@ -2218,10 +2218,7 @@ EXPORT_SYMBOL(b53_eee_enable_set);
*/
int b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy)
{
- int ret;
-
- ret = phy_init_eee(phy, false);
- if (ret)
+ if (!phy->eee_active)
return 0;
b53_eee_enable_set(ds, port, true);
--
2.40.0
Powered by blists - more mailing lists