r6040: consolidate MAC reset to its own function
authorFlorian Fainelli <florian@openwrt.org>
Wed, 11 Apr 2012 07:18:36 +0000 (07:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Apr 2012 20:06:23 +0000 (16:06 -0400)
commit90f750a81a29587846e907d2c8ed60a0586ce632
treea029d7e97a5c67c1ece4b7fc40ed402604ce9b12
parentc1e6aaf0ab0150d625dc266721c033db8b43e49d
r6040: consolidate MAC reset to its own function

The reset of the MAC is currently done identically from two places
and one place is not waiting for the MAC_SM bit to be set after reset.
Everytime the MAC is software resetted a state machine is also needed
so consolidate the reset to its own function.

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