summaryrefslogtreecommitdiff
path: root/SConscript
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-06-17 16:27:03 +0700
committerhathach <[email protected]>2026-06-18 15:56:23 +0700
commit6d74543ce6b3d79c2ba24e11f23fccad52571464 (patch)
tree182af4da33de7771851db81926b65fc639ae005c /SConscript
parentde341b14abe3bc3e25962cbb26aa61bc0126adcf (diff)
dcd/stm32_fsdev: restore CH32 EP0 CONTROL type when stalling
The CH32 workaround only restored EP0 to CONTROL in edpt_xfer(). When the stack rejects a control write with data (handle_ctr_setup having already switched EP0 to BULK) it stalls EP0 via dcd_edpt_stall() without ever calling dcd_edpt_xfer(), leaving EP0 typed BULK+STALL. As SETUP recognition is tied to CONTROL-typed endpoints, the host's recovery SETUP (which should auto-clear the stall) would be ignored, wedging EP0 until a bus reset. Restore CONTROL for EP0 in the same exclusive write that sets the STALL status. DFU download-in-wrong-state is a concrete trigger. Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'SConscript')
0 files changed, 0 insertions, 0 deletions