tsec: Wait for both RX and TX to stop
authorAndy Fleming <afleming@freescale.com>
Mon, 19 Apr 2010 19:54:49 +0000 (14:54 -0500)
committerBen Warren <biggerbadderben@gmail.com>
Mon, 3 May 2010 21:52:48 +0000 (14:52 -0700)
commit538be58568542aac2ed4bdf4c05398cfa67e98f0
tree4eff30b7ca953f5a330d545fa52b746c2de8ad60
parenta45dde2293c816138e53c26eca6fd0322583f9a6
tsec: Wait for both RX and TX to stop

When gracefully stopping the controller, the driver was continuing if
*either* RX or TX had stopped.  We need to wait for both, or the
controller could get into an invalid state.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/tsec.c