]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ethernet: cavium: octeon_mgmt: use phy_start and phy_stop
authorIvan Khoronzhuk <ivan.khoronzhuk@gmail.com>
Fri, 25 Sep 2020 12:44:39 +0000 (15:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Oct 2020 09:55:54 +0000 (11:55 +0200)
commit665298cbd6bdd950d4b8a4aab3ccc6e2e3fd96a4
treef6c91b1688de50ded29dfe0c5d300798472efdc4
parent2cb43007e0601498245f96fcfda4a983dddea6fb
net: ethernet: cavium: octeon_mgmt: use phy_start and phy_stop

[ Upstream commit 4663ff60257aec4ee1e2e969a7c046f0aff35ab8 ]

To start also "phy state machine", with UP state as it should be,
the phy_start() has to be used, in another case machine even is not
triggered. After this change negotiation is supposed to be triggered
by SM workqueue.

It's not correct usage, but it appears after the following patch,
so add it as a fix.

Fixes: 74a992b3598a ("net: phy: add phy_check_link_status")
Signed-off-by: Ivan Khoronzhuk <ikhoronz@cisco.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c