HomeFreeBSD

umodem(4): Clear stall at every open.

Description

umodem(4): Clear stall at every open.

Some controllers like the XHCI(4) loose track of the data toggle value when
USB receive transfers are cancelled at close. This in turn can lead to to
data loss after the next open.

To avoid data loss, make sure both the receive and transmit data toggles
get reset, before trying to read or write any data.

Differential Revision: https://reviews.freebsd.org/D36391
Submitted by: Dave Baukus <daveb@spectralogic.com>
Sponsored by: NVIDIA Networking

(cherry picked from commit 40e43b056df9aa2392f673fcacc72725c2201658)

Details

Provenance
hselaskyAuthored on Aug 30 2022, 2:01 PM
Differential Revision
D36391: Enable umodem clear stall on open
Parents
rG961a016eba58: ucom(4): Make sure the open routine is executed synchronously.
Branches
Unknown
Tags
Unknown