]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6132906706903009fef6c3afe221692ac30851b5
treeb090ff5f8a4b1434703fedc69609efe7748e9127
parent0a2a5b3f12cc19ce99c1665bdb362f27afde6ff8
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