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: Vivien Didelot <hidden>
Date: 2017-09-18 22:31:13

Hi Florian,

Florian Fainelli [off-list ref] writes:
quoted hunk ↗ jump to hunk
@@ -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...

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?

Thanks,

        Vivien
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help