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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"