diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2023-10-04 19:34:22 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2023-10-04 22:11:22 -0400 |
commit | 043f18da260378d11e550248c032702017dafb49 (patch) | |
tree | 64b9c38551c84c87240621fe0e927a6a7f320a2e /src/basecmd.c | |
parent | 615db729e7f35949860f0c9791d6124e1a8fb725 (diff) | |
download | kutter-043f18da260378d11e550248c032702017dafb49.tar.gz kutter-043f18da260378d11e550248c032702017dafb49.tar.xz kutter-043f18da260378d11e550248c032702017dafb49.zip |
stm32: Fix usbfs spurious USB packet transmit on startup
Commit cd8d57c2 added USB double buffering mode on transmits.
However, when enabling double buffering mode, the hardware seems to
always send at least two packets. Spurious transmissions could cause
the Linux gs_usb driver to get confused, which could lead to the can0
device becoming unavailable on restarts. Fix by waiting for two USB
packets to be available before enabling the endpoint.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/basecmd.c')
0 files changed, 0 insertions, 0 deletions