firmware: fix race conditions in control out trans...
by Purdea Andrei 1 year 1 month
firmware: fix race conditions in control out transfers (-3 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 https://github.com/whitequark/libfx2/pull/18 for more
details.
d935ee72
software: update `pdm.min.lock`.
by github-merge-queue 3 weeks 5 days
d513b23d
[pre-commit.ci] pre-commit autoupdate
by pre-commit-ci[bot] 4 weeks 15 hours
[pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.13.2 → v0.13.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.13.2...v0.13.3)
38daaf65
software: update `pdm.min.lock`.
by github-merge-queue 4 weeks 18 hours
796f1b7c
software: update `pdm.min.lock`.
by github-merge-queue 4 weeks 19 hours
dcb96e17
software: update `pdm.min.lock`.
by github-merge-queue 4 weeks 1 day
bd4d6fb8
software: update `pdm.min.lock`.
by github-merge-queue 4 weeks 1 day
a65aa483
software: update `pdm.min.lock`.
by github-merge-queue 1 month 11 hours
3bfe5f9f
docs: fix `_redirects` format.
by whitequark 1 month 2 days
7e725cb4
docs: update `_redirects`.
by whitequark 1 month 2 days
fb4b555b
Report a bug