Author: avg
Date: Fri Oct 25 15:39:46 2019
New Revision: 354077
URL: https://svnweb.freebsd.org/changeset/base/354077

Log:
  owc_gpiobus_read_data: add recovery time to the read slot
  
  Reviewed by:  imp
  MFC after:    2 weeks

Modified:
  head/sys/dev/ow/owc_gpiobus.c

Modified: head/sys/dev/ow/owc_gpiobus.c
==============================================================================
--- head/sys/dev/ow/owc_gpiobus.c       Fri Oct 25 15:38:09 2019        
(r354076)
+++ head/sys/dev/ow/owc_gpiobus.c       Fri Oct 25 15:39:46 2019        
(r354077)
@@ -307,7 +307,7 @@ owc_gpiobus_read_data(device_t dev, struct ow_timing *
        /* 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);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to