Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2016 16:26:00 +0000 (UTC)
From:      Luiz Otavio O Souza <loos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r297419 - head/sys/arm/ti
Message-ID:  <201603301626.u2UGQ0kv013322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: loos
Date: Wed Mar 30 16:26:00 2016
New Revision: 297419
URL: https://svnweb.freebsd.org/changeset/base/297419

Log:
  Bump up the read and write timeouts.  The old value was too small for low
  speed transfers.
  
  Sponsored by:	Rubicon Communications (Netgate)

Modified:
  head/sys/arm/ti/ti_spi.c

Modified: head/sys/arm/ti/ti_spi.c
==============================================================================
--- head/sys/arm/ti/ti_spi.c	Wed Mar 30 14:42:09 2016	(r297418)
+++ head/sys/arm/ti/ti_spi.c	Wed Mar 30 16:26:00 2016	(r297419)
@@ -333,7 +333,7 @@ ti_spi_fill_fifo(struct ti_spi_softc *sc
 			timeout = 1000;
 			while (--timeout > 0 && (TI_SPI_READ(sc,
 			    MCSPI_STAT_CH(sc->sc_cs)) & MCSPI_STAT_TXS) == 0) {
-				DELAY(1);
+				DELAY(100);
 			}
 			if (timeout == 0)
 				return (-1);
@@ -366,7 +366,7 @@ ti_spi_drain_fifo(struct ti_spi_softc *s
 			timeout = 1000;
 			while (--timeout > 0 && (TI_SPI_READ(sc,
 			    MCSPI_STAT_CH(sc->sc_cs)) & MCSPI_STAT_RXS) == 0) {
-				DELAY(1);
+				DELAY(100);
 			}
 			if (timeout == 0)
 				return (-1);



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