]> git.baikalelectronics.ru Git - kernel.git/commit
r6040: invoke phy_{start,stop} when appropriate
authorFlorian Fainelli <florian@openwrt.org>
Thu, 6 Oct 2011 23:36:22 +0000 (23:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Oct 2011 03:50:59 +0000 (23:50 -0400)
commit2d74281d126f56a0330c2f0a8b33e6e54e690c00
treeee8bb0b4d7c53cee8ab9eefbae1dc44346d72d17
parenteaf04d4c88280ba39a7862d87b52d83213f64845
r6040: invoke phy_{start,stop} when appropriate

Joe reported to me that right after a bring up of a r6040 interface
the ethtool output had no consistent output with respect to link duplex
and speed. Fix this by adding a missing phy_start call in r6040_up and
conversely a phy_stop call in r6040_down to properly initialize phy states.

Reported-by: Joe Chou <Joe.Chou@rdc.com.tw>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rdc/r6040.c