| 1bce6aaf | 30-Oct-2019 |
Andriy Gapon <[email protected]> |
ow(4): protocol timings can now be changed as sysctl-s / tunables
I limited potentially infinite timings by 960 us based on a footnote on page 38 of Maxim Integrated Application Note 937, Book of iB
ow(4): protocol timings can now be changed as sysctl-s / tunables
I limited potentially infinite timings by 960 us based on a footnote on page 38 of Maxim Integrated Application Note 937, Book of iButton Standards: "In order not to mask interrupt signalling by other devices on the 1–Wire bus, tRSTL + tR should always be less than 960 us."
MFC after: 3 weeks
show more ...
|
| bb7b803b | 25-Oct-2019 |
Andriy Gapon <[email protected]> |
owc_gpiobus_read_data: compare times in sbintime_t units
Previously the code used sbttous() before microseconds comparison in one place, sbttons() and nanoseconds in another, division by SBT_1US and
owc_gpiobus_read_data: compare times in sbintime_t units
Previously the code used sbttous() before microseconds comparison in one place, sbttons() and nanoseconds in another, division by SBT_1US and microseconds in yet another.
Now the code consistently uses multiplication by SBT_1US to convert microseconds to sbintime_t before comparing them with periods between calls to sbinuptime(). This is fast, this is precise enough (below 0.03%) and the periods defined by the protocol cannot overflow.
Reviewed by: imp (D22108) MFC after: 2 weeks
show more ...
|
| 46ecf8e0 | 25-Oct-2019 |
Andriy Gapon <[email protected]> |
ow_temp: better scopes for the lock
The lock is used only for start / stop signaling. It is used only for 'flags' field and the related condition variable.
This change is a follow-up to r354067, it
ow_temp: better scopes for the lock
The lock is used only for start / stop signaling. It is used only for 'flags' field and the related condition variable.
This change is a follow-up to r354067, it was suggested by Warner in D22107.
Suggested by: imp MFC after: 1 week
show more ...
|