From owner-svn-src-projects@FreeBSD.ORG Fri Jun 19 05:00:17 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE2A5106566C; Fri, 19 Jun 2009 05:00:17 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id DCC768FC14; Fri, 19 Jun 2009 05:00:17 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5J50HLY031650; Fri, 19 Jun 2009 05:00:17 GMT (envelope-from gonzo@svn.freebsd.org) Received: (from gonzo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5J50HZE031648; Fri, 19 Jun 2009 05:00:17 GMT (envelope-from gonzo@svn.freebsd.org) Message-Id: <200906190500.n5J50HZE031648@svn.freebsd.org> From: Oleksandr Tymoshenko Date: Fri, 19 Jun 2009 05:00:17 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194470 - projects/mips/sys/mips/atheros X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jun 2009 05:00:18 -0000 Author: gonzo Date: Fri Jun 19 05:00:17 2009 New Revision: 194470 URL: http://svn.freebsd.org/changeset/base/194470 Log: - Flush PCI register write before delay Spotted by: Pyun YongHyeon Modified: projects/mips/sys/mips/atheros/ar71xx_pci.c Modified: projects/mips/sys/mips/atheros/ar71xx_pci.c ============================================================================== --- projects/mips/sys/mips/atheros/ar71xx_pci.c Fri Jun 19 04:43:49 2009 (r194469) +++ projects/mips/sys/mips/atheros/ar71xx_pci.c Fri Jun 19 05:00:17 2009 (r194470) @@ -296,13 +296,13 @@ ar71xx_pci_attach(device_t dev) reset = ATH_READ_REG(AR71XX_RST_RESET); reset |= (RST_RESET_PCI_CORE | RST_RESET_PCI_BUS); ATH_WRITE_REG(AR71XX_RST_RESET, reset); - DELAY(1000); ATH_READ_REG(AR71XX_RST_RESET); + DELAY(1000); reset &= ~(RST_RESET_PCI_CORE | RST_RESET_PCI_BUS); ATH_WRITE_REG(AR71XX_RST_RESET, reset); - DELAY(1000); ATH_READ_REG(AR71XX_RST_RESET); + DELAY(1000); /* Init PCI windows */ ATH_WRITE_REG(AR71XX_PCI_WINDOW0, PCI_WINDOW0_ADDR);