aboutsummaryrefslogtreecommitdiffstats
path: root/src/basecmd.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2023-10-04 19:34:22 -0400
committerKevin O'Connor <kevin@koconnor.net>2023-10-04 22:11:22 -0400
commit043f18da260378d11e550248c032702017dafb49 (patch)
tree64b9c38551c84c87240621fe0e927a6a7f320a2e /src/basecmd.c
parent615db729e7f35949860f0c9791d6124e1a8fb725 (diff)
downloadkutter-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