author | Thanh Tran <thanh-tran@ti.com> | |
Sat, 9 Mar 2019 01:57:36 +0000 (20:57 -0500) | ||
committer | Thanh Tran <thanh-tran@ti.com> | |
Sat, 9 Mar 2019 01:57:36 +0000 (20:57 -0500) | ||
commit | 0444c3f2a719667f1e02f101938471f452441899 | |
tree | 25c6e4f3aa298a30afd0208363ac7adcaa1ccdc4 | tree | snapshot (tar.xz tar.gz zip) |
parent | f4889a01186dd399cccabe1f754a21bc591879d9 | commit | diff |
Fix mismatch Bulk state when USB task is preempted
When USB is running in a low priority task, a higher priority
task can pre-empt it. This pre-emption messes up the internal USB
bulk state and renders the USB stack not working.
Fix is to set the Bulk state before calling the lower level API that
sets up the USB core transaction.
When USB is running in a low priority task, a higher priority
task can pre-empt it. This pre-emption messes up the internal USB
bulk state and renders the USB stack not working.
Fix is to set the Bulk state before calling the lower level API that
sets up the USB core transaction.
src/usb_func/device/usbdbulk.c | diff | blob | history |