Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 19:00:19 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200854 - head/sys/dev/ste
Message-ID:  <200912221900.nBMJ0JUw072595@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Tue Dec 22 19:00:18 2009
New Revision: 200854
URL: http://svn.freebsd.org/changeset/base/200854

Log:
  Add minimal dealy while ste(4) is waiting for the end of active DMA
  cycle.

Modified:
  head/sys/dev/ste/if_ste.c

Modified: head/sys/dev/ste/if_ste.c
==============================================================================
--- head/sys/dev/ste/if_ste.c	Tue Dec 22 18:57:07 2009	(r200853)
+++ head/sys/dev/ste/if_ste.c	Tue Dec 22 19:00:18 2009	(r200854)
@@ -471,6 +471,7 @@ ste_wait(struct ste_softc *sc)
 	for (i = 0; i < STE_TIMEOUT; i++) {
 		if (!(CSR_READ_4(sc, STE_DMACTL) & STE_DMACTL_DMA_HALTINPROG))
 			break;
+		DELAY(1);
 	}
 
 	if (i == STE_TIMEOUT)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912221900.nBMJ0JUw072595>