mirror of
https://github.com/opnsense/src.git
synced 2026-02-28 20:30:57 -05:00
The termios layer wants some level of guarantee that we've actually
submitted param changes to the hardware when our functions return, so we
need to do a little more waiting to avoid violating those guarantees.
This is especially important as some hardware has some minimum timing
specifications around this stuff, and without being less asynchronous
the software dealing with these devices can't reasonably operate the
hardware without more excessive delays than they should need.
More specifically, we make sure that:
- The command to start transfers is finished before we toggle DTR/RTS
- The status_change command finishes before we return, which may change
some fields in the softc that we need for a subsequent call into
usb_serial
- cfg_param finishes before we re-enable transfers, and we ensure that
RTS is appropriately toggled before we return to userland
This has been observed to fix some flakiness in connecting to some
ESP32 devices.
Tested by: kenrap from Libera
Reviewed by: imp, kib
(cherry picked from commit 36a80f4264350a2f4f0686eb91ae7f5943d40327)
|
||
|---|---|---|
| .. | ||
| u3g.c | ||
| uark.c | ||
| ubsa.c | ||
| ubser.c | ||
| uchcom.c | ||
| ucycom.c | ||
| ufoma.c | ||
| uftdi.c | ||
| uftdi_reg.h | ||
| ugensa.c | ||
| uipaq.c | ||
| ulpt.c | ||
| umcs.c | ||
| umcs.h | ||
| umct.c | ||
| umodem.c | ||
| umoscom.c | ||
| uplcom.c | ||
| usb_serial.c | ||
| usb_serial.h | ||
| uslcom.c | ||
| uvisor.c | ||
| uvscom.c | ||