Re: i2c bit banging timeout for SCL

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Mon, 01 Jul 2019 17:14:48 +0000
--------
In message <CANCZdfoFBvmxPtnEL4GOqXTvp6Zd-xrtja4rmUO1rAcy0JdeSw_at_mail.gmail.com>, Warner Losh writes:

>The only issue, really, is that this timeout is a busy loop and there may
>be I/O bus contention introduced on these systems.

Does it have to be a busy loop for the entire duration ?

Spin for the median, timeout+poll for the rest of the time ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Mon Jul 01 2019 - 15:14:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:21 UTC