mv643xx_eth: also check TX_IN_PROGRESS when disabling transmit path
commitae9ae06443f7bfa4f013c0e2c035d549e999ad3e
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 15 Jul 2008 00:15:24 +0000 (15 02:15 +0200)
committerLennert Buytenhek <buytenh@marvell.com>
Thu, 24 Jul 2008 04:22:51 +0000 (24 06:22 +0200)
tree464b7e9f5bc9225d6944d4d484cf44f468c56f91
parent65193a91fc60fdb79e392c9842c10552a1fa3e1c
mv643xx_eth: also check TX_IN_PROGRESS when disabling transmit path

The recommended sequence for waiting for the transmit path to clear
after disabling all of the transmit queues is to wait for the
TX_FIFO_EMPTY bit in the Port Status register to become set as well
as the TX_IN_PROGRESS bit to clear.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
drivers/net/mv643xx_eth.c