OSDN Git Service

net: phylink: ensure consistent phy interface mode
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 28 May 2019 09:27:21 +0000 (10:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 21:20:24 +0000 (14:20 -0700)
commitc678726305b9425454be7c8a7624290b602602fc
tree233cbdd32aa3d0a58ed1fd0586164a172c962d3d
parent315ca92dd863fecbffc0bb52ae0ac11e0398726a
net: phylink: ensure consistent phy interface mode

Ensure that we supply the same phy interface mode to mac_link_down() as
we did for the corresponding mac_link_up() call.  This ensures that MAC
drivers that use the phy interface mode in these methods can depend on
mac_link_down() always corresponding to a mac_link_up() call for the
same interface mode.

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