HomeFreeBSD

twsi: protect interaction between twsi_transfer and twsi_intr

Description

twsi: protect interaction between twsi_transfer and twsi_intr

All accesses to softc are now done under a mutex to prevent data races
between the open context and the interrupt handler.
Additionally, the wait time in twsi_transfer is bounded now.
Previously we could get stuck there forever if an interrupt got lost.

MFC after: 2 weeks

Details

Provenance
avgAuthored on Nov 26 2021, 7:25 AM
Parents
rGa2793d618225: twsi: compile in support for debug messages, disabled by default
Branches
Unknown
Tags
Unknown