Thread (29 messages) flat view 29 messages, 4 authors, 2017-09-19

Re: [PATCH net-next 08/12] net: dsa: b53: Move EEE functions to b53

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2017-09-18 22:33:57

On 09/18/2017 03:27 PM, Vivien Didelot wrote:
Hi Florian,

Florian Fainelli [off-list ref] writes:
quoted
@@ -649,7 +595,7 @@ static void bcm_sf2_sw_adjust_link(struct dsa_switch *ds, int port,
 	core_writel(priv, reg, offset);
 
 	if (!phydev->is_pseudo_fixed_link)
-		p->eee_enabled = bcm_sf2_eee_init(ds, port, phydev);
+		p->eee_enabled = b53_eee_init(ds, port, phydev);
 }
I know this is a bit out-of-scope of this patch, but I have to say I am
not confortable with having still phy device stuffs in switch drivers...
Yes, this is out of scope :)
Can this is_pseudo_fixed_link check + phy_eee_init + eee_enable be moved
up to dsa_slave_adjust_link in a future patch maybe?
Not 100% positive this applies to all switches, which is why this is
still largely a switch driver decision.
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help