OSDN Git Service

tg3: Fix io failures after chip reset
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 20 Jul 2011 10:20:50 +0000 (10:20 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 Oct 2011 18:40:42 +0000 (11:40 -0700)
commitb7d4d461ad51ad98992a1b4d0b46f86ccabd1ee0
tree6905f65d03a5e00e094447ff539802b80f8836d1
parent52734d26ffca727da0e687963333ae88056ad84b
tg3: Fix io failures after chip reset

commit 9e975cc291d80d5e4562d6bed15ec171e896d69b upstream.

Commit f2096f94b514d88593355995d5dd276961e88af1, entitled
"tg3: Add 5720 H2BMC support", needed to add code to preserve some bits
set by firmware.  Unfortunately the new code causes throughput to stop
after a chip reset because it enables state machines before they are
ready.  This patch undoes the problematic code.  The bits will be
restored later in the init sequence.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/tg3.c