tsec: Fix a bug in soft-resetting
authorAndy Fleming <afleming@freescale.com>
Wed, 4 Feb 2009 00:26:41 +0000 (18:26 -0600)
committerBen Warren <biggerbadderben@gmail.com>
Tue, 10 Feb 2009 06:52:32 +0000 (22:52 -0800)
commit9e5be8214ba751436e57c3be044bf6dccb9a6687
treec3e969d2f69338bc9b1f078a45c40238004fdf67
parent09fcc8b5d86903b76e7e4d1d879d6f4bca25c27b
tsec: Fix a bug in soft-resetting

SOFT_RESET must be asserted for at least 3 TX clocks.  Usually, that's about 30
clock cycles, so it's been mostly working.  But we had no guarantee, and at
slower bitrates, it's just over a microsecond (over 1000 clock cycles).  This
enforces a 2 microsecond gap between assertion and deassertion.

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