HomeFreeBSD

usb(4): Code refactoring as a pre-step for adding missing synchronization…

Description

usb(4): Code refactoring as a pre-step for adding missing synchronization mechanism.

Move code in switch cases into own functions to make later changes easier to track.

No functional change, except for removing a superfluous break statement when
range checking USB_FS_MAX_FRAMES, in the USB_FS_OPEN case.
It should not have been there at all.

Suggested by: emaste@
Sponsored by: NVIDIA Networking

(cherry picked from commit 03a2e432d5cc2eedb9304faea2b19051c84caecf)

Details

Provenance
hselaskyAuthored on Apr 4 2023, 3:15 PM
Parents
rG633040b8e4df: usb: dwc3: add <sys/mutex.h>
Branches
Unknown
Tags
Unknown