net: phylink: rearrange resolve mac_config() call
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 21 Jul 2020 11:03:55 +0000 (12:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 22:46:50 +0000 (15:46 -0700)
commit319bfafe3494b6fd6cdf48dcdc9d17cf2a77d405
tree52fa7e6418fa26a98430d52a150f2954a140254e
parentb06e5cac213cffbbf642d7e46e06719e02c75a4b
net: phylink: rearrange resolve mac_config() call

Use a boolean to indicate whether mac_config() should be called during
a resolution. This allows resolution to have a single location where
mac_config() will be called, which will allow us to make decisions
about how and what we do.

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c