Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2007 16:37:09 GMT
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 120785 for review
Message-ID:  <200706021637.l52Gb9W2066712@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=120785

Change 120785 by rpaulo@rpaulo_epsilon on 2007/06/02 16:37:03

	Increase the iteration in asmc_wait() so that we wait long
	enough for the SMC command to complete.

Affected files ...

.. //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#7 edit

Differences ...

==== //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#7 (text+ko) ====

@@ -23,7 +23,7 @@
  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#6 $
+ * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/asmc/asmc.c#7 $
  *
  */
 
@@ -492,7 +492,7 @@
 
 	val = val & ASMC_STATUS_MASK;
 
-	for (i = 0; i < 100; i++) {
+	for (i = 0; i < 1000; i++) {
 		if ((inb(ASMC_CMDPORT) & ASMC_STATUS_MASK) == val)
 			return 0;
 		DELAY(10);



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