[TG3]: Add tw32_wait_f() for some sensitive registers
authorMichael Chan <mchan@broadcom.com>
Tue, 20 Dec 2005 00:27:04 +0000 (16:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Dec 2005 00:27:04 +0000 (16:27 -0800)
commitb401e9e2ec44a5fc1d8053546276bff584b7118e
tree3f554445d377269c941688d2ce23479bd198d8a3
parentdc56b7d46dd2b303a844166ef931270b882bf08c
[TG3]: Add tw32_wait_f() for some sensitive registers

The tw32_f() function (register write with immediate read flush) can
hang when used on some registers to switch clock frequencies and
power. A new tw32_wait_f() is added for such registers with the
delay before the read and after the read.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c