Page MenuHomeFreeBSD

twsi: some variants clear interrupt flag by writing 0, others by writing 1

Authored by avg on Sep 3 2020, 8:23 AM.



Make that distinction more explicit and regular in the code.
The difference in behavior is documented in the respective datasheets.

Previously, the code handled the distinction by writing the control
register multiple times where at least one write was zero and another
was one.

This can be considered a follow-up to rS363021.

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

avg requested review of this revision.Sep 3 2020, 8:23 AM

Mhm I was sure that the read was needed and I think it was H3 that I tested that with, but since you have H3 I guess I was wrong.

This revision is now accepted and ready to land.Sep 3 2020, 9:31 AM