diff options
| author | hathach <[email protected]> | 2026-06-19 22:58:17 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-06-19 22:58:17 +0700 |
| commit | a5292288b20abbfa3990a4dbc3acf8ff650c5e5b (patch) | |
| tree | 3ef8ca0b23a17622a19ae7cf2b7faf7d7c553df3 /docs/reference | |
| parent | 58b5447b606b49c76187c48e5b76690f4a111143 (diff) | |
dcd/ch58x: report bus resume instead of a second suspend
The USBFS SUSPEND interrupt fires on both the suspend and the resume edge, but the
handler unconditionally posted DCD_EVENT_SUSPEND. On CH58x tud_resume_cb() therefore
never ran, and a device that lowered clocks/power in tud_suspend_cb() was never told
to restore them. Read MIS_ST's suspend bit (1 while suspended, 0 once resumed) to emit
DCD_EVENT_RESUME on the wake edge -- what the removed dcd_ch58x_usbfs.c did. Scoped to
CH58x via #if; the CH32 parts keep their existing behavior.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'docs/reference')
0 files changed, 0 insertions, 0 deletions
