Module Name: src Committed By: riastradh Date: Wed Feb 12 16:00:17 UTC 2020
Modified Files: src/sys/dev/usb: usbdi.c usbdivar.h Log Message: New xfer state variables ux_timeout_set and ux_timeout_reset. These are needed because: - The host controller interrupt cannot wait for the callout or task to finish running. - Nothing in the USBD API as is waits for the callout or task to finish running. - Callers expect to be able to resubmit USB xfers from xfer callbacks without waiting for anything to finish running. The variable ux_timeout_set can be used by a host controller to decide on submission whether to schedule the callout or to ask an already-scheduled callout or already-queued task to reschedule the callout, by setting the variable ux_timeout_reset to true. When the callout or task runs and sees that ux_timeout_reset is true, rather than queue the task or abort the xfer, it can instead just schedule the callout anew. To generate a diff of this commit: cvs rdiff -u -r1.190 -r1.191 src/sys/dev/usb/usbdi.c cvs rdiff -u -r1.120 -r1.121 src/sys/dev/usb/usbdivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.