net: bcmgenet: pull mac_config from adjust_link
authorDoug Berger <opendmb@gmail.com>
Sun, 26 Sep 2021 03:21:13 +0000 (20:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 15:34:52 +0000 (16:34 +0100)
commitfc13d8c03773e48cd775aecdbd281b1cbad87ac2
treeb090ff5f8a4b1434703fedc69609efe7748e9127
parentfcb5dfe7dc4090fb3db5b3e721ca6073f3a2418b
net: bcmgenet: pull mac_config from adjust_link

This commit separates out the MAC configuration that occurs on a
PHY state change into a function named bcmgenet_mac_config().

This allows the function to be called directly elsewhere.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmmii.c