]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb8ce332451b86bafa78be8a819a46d2ab09a826
treea029d7e97a5c67c1ece4b7fc40ed402604ce9b12
parentd633e0832768491adac7d55d2c3adeeb961ac9f0
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