]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: Add phylink_mac_link_{up, down} wrapper functions
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 28 May 2019 17:38:11 +0000 (20:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:48:53 +0000 (21:48 -0700)
commit904a02fb7b20aadaba3398e8772081e7e5f021bc
tree372de586b71d947175b71968e6a7df4bdd0d77d4
parent58af32c14f7da07a3488d73fb64e2cec7dbf97fe
net: phylink: Add phylink_mac_link_{up, down} wrapper functions

This is a cosmetic patch that reduces the clutter in phylink_resolve
around calling the .mac_link_up/.mac_link_down driver callbacks.  In a
further patch this logic will be extended to emit notifications in case
a net device does not exist.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c