]> git.baikalelectronics.ru Git - kernel.git/commit
Altera TSE: Add missing phydev
authorKostya Belezko <bkostya@hotmail.com>
Tue, 30 Dec 2014 17:27:09 +0000 (12:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jan 2015 20:45:10 +0000 (15:45 -0500)
commit9e9732aeb6e7a40b0a3700d353af6fa07e0eb5c0
treee295756d99f27537bb652d129c45e3072e646b2a
parent50c5d73f402fffeebd416ac4c4ea9dcbfcd479a1
Altera TSE: Add missing phydev

Altera network device doesn't come up after

ifconfig eth0 down
ifconfig eth0 up

The reason behind is clearing priv->phydev during tse_shutdown().
The phydev is not restored back at tse_open().

Resubmiting as to follow Tobias Klauser suggestion.
phy_start/phy_stop are called on each ifup/ifdown and
phy_disconnect is called once during the module removal.

Signed-off-by: Kostya Belezko <bkostya@hotmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/altera/altera_tse_main.c