Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware: fix race conditions in control out transfers (-2 bytes XRAM).
Before this change, the EP0BUF buffer used by control out transfers could be overwritten by new control transfers before the firmware is finished processing the previous control transfer. The easiest way to illustrate this problem would be to run in a different terminal the following: ```bash while true; do lsusb -v -d 20b7:9db1 > /dev/null; done ``` While this is running, glasglow is completely unusable. Presumably even a single lsusb run could cause corruption, if it happens to be issued at the wrong time. With this change glasgow is now usable, even if the above loop is running. Please see whitequark/libfx2#18 for more details.
- Loading branch information