Commit 7cceb599 authored by Russell King's avatar Russell King Committed by David S. Miller

net: phylink: avoid mac_config calls

Avoid calling mac_config() when using split PCS, and the interface
remains the same.
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5005b163
......@@ -631,10 +631,12 @@ static void phylink_resolve(struct work_struct *w)
}
phylink_pcs_config(pl, false, &link_state);
pl->link_config.interface = link_state.interface;
} else {
} else if (!pl->pcs_ops) {
/* The interface remains unchanged, only the speed,
* duplex or pause settings have changed. Call the
* old mac_config() method to configure the MAC/PCS.
* old mac_config() method to configure the MAC/PCS
* only if we do not have a PCS installed (an
* unconverted user.)
*/
phylink_mac_config(pl, &link_state);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment