From 4869ee8c50e0cb0da7ac1a67691bd55fb3a6bbaf Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Fri, 8 Nov 2019 07:38:34 +0000 Subject: [PATCH] MFC r354077,r354078: owc_gpiobus_read_data: add recovery time to the read slot --- sys/dev/ow/owc_gpiobus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ow/owc_gpiobus.c b/sys/dev/ow/owc_gpiobus.c index e0f9509e18d..eff2243f91e 100644 --- a/sys/dev/ow/owc_gpiobus.c +++ b/sys/dev/ow/owc_gpiobus.c @@ -307,7 +307,7 @@ owc_gpiobus_read_data(device_t dev, struct ow_timing *t, int *bit) /* Wait out the rest of t_slot */ do { now = sbinuptime(); - } while (now - then < t->t_slot * SBT_1US); + } while (now - then < (t->t_slot + t->t_rec) * SBT_1US); RELBUS(sc); -- 2.45.0