r6040: add a MAC operation timeout define
authorFlorian Fainelli <florian@openwrt.org>
Wed, 11 Apr 2012 07:18:38 +0000 (07:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Apr 2012 20:06:24 +0000 (16:06 -0400)
commit2fa15bbdd8a1ac096819df29db8d69b063752bee
tree250b5b9033bf3064f140bcc6b6693fd6d33b03d3
parent0db0cfcc4ddff3226c8c721760b6a4eaf0e5229a
r6040: add a MAC operation timeout define

2048 is the usual value for busy-waiting on a register r/w, define it
as MAC_DEF_TIMEOUT and use it where it is appropriate.

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