From 58cf5c96d08580d463b4988f5b4569c07929c5e6 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 18 Aug 2019 15:52:46 +0000 Subject: Increase timeout used when waiting for the Rx FIFO to fill up when in polled mode. ok jcs@, mlarkin@ --- sys/dev/ic/dwiic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/dwiic.c b/sys/dev/ic/dwiic.c index 89de133ee1b..bae04efa0fa 100644 --- a/sys/dev/ic/dwiic.c +++ b/sys/dev/ic/dwiic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwiic.c,v 1.7 2019/08/18 15:51:18 kettenis Exp $ */ +/* $OpenBSD: dwiic.c,v 1.8 2019/08/18 15:52:45 kettenis Exp $ */ /* * Synopsys DesignWare I2C controller * @@ -350,7 +350,7 @@ dwiic_i2c_exec(void *cookie, i2c_op_t op, i2c_addr_t addr, const void *cmdbuf, sc->sc_dev.dv_xname, __func__, tx_limit, x)); if (flags & I2C_F_POLL) { - for (retries = 100; retries > 0; retries--) { + for (retries = 1000; retries > 0; retries--) { rx_avail = dwiic_read(sc, DW_IC_RXFLR); if (rx_avail > 0) break; -- cgit v1.2.3