netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tg3 PXE-related fix
@ 2002-11-26 23:58 Jeff Garzik
  0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2002-11-26 23:58 UTC (permalink / raw)
  To: netdev; +Cc: David S. Miller

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

Thanks to Manish Lachwani for isolating the area for this fix, which 
will get checked in soon after some more testing.  Fix originated from 
the Broadcom driver, via Manish's kind help.

Posted mainly in case other netdev'izens with BCM5704 A0 chips are 
running into this.

Patch against 2.4.20-rc[34]'s tg3.c, a.k.a. version 1.2.

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 617 bytes --]

diff -Nru a/drivers/net/tg3.c b/drivers/net/tg3.c
--- a/drivers/net/tg3.c	Mon Nov 25 18:53:36 2002
+++ b/drivers/net/tg3.c	Mon Nov 25 18:53:36 2002
@@ -6182,6 +6182,13 @@
 	if ((pci_state_reg & PCISTATE_BUS_32BIT) != 0)
 		tp->tg3_flags |= TG3_FLAG_PCI_32BIT;
 
+	/* Chip-specific fixup from Broadcom driver */
+	if ((tp->pci_chip_rev_id == CHIPREV_ID_5704_A0) &&
+	    (!(pci_state_reg & PCISTATE_RETRY_SAME_DMA))) {
+		pci_state_reg |= PCISTATE_RETRY_SAME_DMA;
+		pci_write_config_dword(tp->pdev, TG3PCI_PCISTATE, pci_state_reg);
+	}
+
 	/* Force the chip into D0. */
 	err = tg3_set_power_state(tp, 0);
 	if (err)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-26 23:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-26 23:58 [PATCH] tg3 PXE-related fix Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).