From owner-svn-src-all@freebsd.org Wed Mar 30 16:26:01 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B351AE3C2E; Wed, 30 Mar 2016 16:26:01 +0000 (UTC) (envelope-from loos@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DB421DD0; Wed, 30 Mar 2016 16:26:01 +0000 (UTC) (envelope-from loos@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u2UGQ0VR013323; Wed, 30 Mar 2016 16:26:00 GMT (envelope-from loos@FreeBSD.org) Received: (from loos@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u2UGQ0kv013322; Wed, 30 Mar 2016 16:26:00 GMT (envelope-from loos@FreeBSD.org) Message-Id: <201603301626.u2UGQ0kv013322@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: loos set sender to loos@FreeBSD.org using -f From: Luiz Otavio O Souza Date: Wed, 30 Mar 2016 16:26:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r297419 - head/sys/arm/ti X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 16:26:01 -0000 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);