Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932293AbWHZADj (ORCPT ); Fri, 25 Aug 2006 20:03:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422949AbWHZADT (ORCPT ); Fri, 25 Aug 2006 20:03:19 -0400 Received: from mga07.intel.com ([143.182.124.22]:60976 "EHLO azsmga101.ch.intel.com") by vger.kernel.org with ESMTP id S1422942AbWHZADL (ORCPT ); Fri, 25 Aug 2006 20:03:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: i="4.08,170,1154934000"; d="scan'208"; a="107791845:sNHT17674573" Message-Id: <20060826000303.287410000@linux.intel.com> References: <20060826000227.818796000@linux.intel.com> User-Agent: quilt/0.45-1 Date: Fri, 25 Aug 2006 17:02:31 -0700 From: Valerie Henson To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Grant Grundler , Kyle McMartin , Valerie Henson , Jeff Garzik Subject: [patch 04/10] [TULIP] Flush MMIO writes in reset sequence Content-Disposition: inline; filename=tulip-flush-mmio-writes-in-reset-sequence Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 37 From: Grant Grundler The obvious safe registers to read is one from PCI config space. Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin Signed-off-by: Valerie Henson Signed-off-by: Jeff Garzik --- drivers/net/tulip/tulip_core.c | 2 ++ 1 files changed, 2 insertions(+) --- linux-2.6.18-rc4-mm1.orig/drivers/net/tulip/tulip_core.c +++ linux-2.6.18-rc4-mm1/drivers/net/tulip/tulip_core.c @@ -295,12 +295,14 @@ static void tulip_up(struct net_device * /* Reset the chip, holding bit 0 set at least 50 PCI cycles. */ iowrite32(0x00000001, ioaddr + CSR0); + pci_read_config_dword(tp->pdev, PCI_COMMAND, &i); /* flush write */ udelay(100); /* Deassert reset. Wait the specified 50 PCI cycles after a reset by initializing Tx and Rx queues and the address filter list. */ iowrite32(tp->csr0, ioaddr + CSR0); + pci_read_config_dword(tp->pdev, PCI_COMMAND, &i); /* flush write */ udelay(100); if (tulip_debug > 1) -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/