]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sky2: enable rx/tx in sky2_phy_reinit()
authorBrandon Philips <brandon@ifup.org>
Wed, 16 Jun 2010 16:21:58 +0000 (16:21 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:20:44 +0000 (10:20 -0700)
commitda07bf0fcc8b02737196369aa7f5bd2e0afec238
treefdfc80eb2ed81328d36d82878ba6d8fee3fa4c77
parent19a7aff8e075e8d828a638e1d66866775bf14801
sky2: enable rx/tx in sky2_phy_reinit()

commit 38000a94a902e94ca8b5498f7871c6316de8957a upstream.

sky2_phy_reinit is called by the ethtool helpers sky2_set_settings,
sky2_nway_reset and sky2_set_pauseparam when netif_running.

However, at the end of sky2_phy_init GM_GP_CTRL has GM_GPCR_RX_ENA and
GM_GPCR_TX_ENA cleared. So, doing these commands causes the device to
stop working:

$ ethtool -r eth0
$ ethtool -A eth0 autoneg off

Fix this issue by enabling Rx/Tx after running sky2_phy_init in
sky2_phy_reinit.

Signed-off-by: Brandon Philips <bphilips@suse.de>
Tested-by: Brandon Philips <bphilips@suse.de>
Cc: stable@kernel.org
Tested-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/sky2.c