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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Sep 2020 23:51:31 +0000 (16:51 -0700)
commit4663ff60257aec4ee1e2e969a7c046f0aff35ab8
tree80bbf5fe68f9474add925705158deaac67a03c6d
parentac322f86b56cb99d1c4224c209095aa67647c967
net: ethernet: cavium: octeon_mgmt: use phy_start and phy_stop

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>
drivers/net/ethernet/cavium/octeon/octeon_mgmt.c