i2c bit banging timeout for SCL

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jul 1 17:14:51 UTC 2019


--------
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.


More information about the freebsd-current mailing list