HomeFreeBSD

usb: serial: allow the open/close sleep to be interruptible

Description

usb: serial: allow the open/close sleep to be interruptible

ucom_queue_command will issue commands for open/close, then wait on them
to be finished. In the spirit of playing it safe, allow
ucom_queue_command's wait to be interrupted in case the usb process gets
jammed up waiting on the hardware -- we can at least recover the user
thread that initiated it, even if we can't recover the usb process.

Reviewed by: imp, kib

(cherry picked from commit 729eb176a465cedc55c5980f116d87be592421f1)

Details

Provenance
kevansAuthored on Dec 11 2024, 1:23 AM
Parents
rG360d3fe8743d: usb: serial: propagate errors from ucom_queue_command()
Branches
Unknown
Tags
Unknown