svn commit: r297419 - head/sys/arm/ti
Luiz Otavio O Souza
loos at FreeBSD.org
Wed Mar 30 16:26:01 UTC 2016
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);
More information about the svn-src-all
mailing list