]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:15:20 +0000 (08:15 +0200)
commit7698ad8c14c7ba8fc4364e6c9150c94203de7333
tree6b587d8cb889ef433a4e85f8c0b5d473b8465622
parent8fb2c7969009b16c85fcb4d3a423cc4a4d435a6e
net: phylink: ensure consistent phy interface mode

[ Upstream commit c678726305b9425454be7c8a7624290b602602fc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/phylink.c