tg3: Prevent tx BD corruption
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 25 Aug 2009 10:07:27 +0000 (10:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2009 22:47:47 +0000 (15:47 -0700)
commit255ca311b650caece3ec4f78b88ef298664d561f
treecf26fdfb0fb9f5fba78bb59a82f37abb132d4b62
parent521e6b90dd3f0392062845d7ef13e6e41bb99d8a
tg3: Prevent tx BD corruption

This patch prevents a tx BD corruption bug by preventing the device from
powering down the PLL from L1 if the link speed is 10Mbps or 100Mbps.

The same bits are also used to prevent a system hang during chip reset
resulting from a complicated set of events that ultimately leads to
PCIe block register corruption.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Reviewed-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h