Skip to content

Commit 79d69bc

Browse files
committed
Merge branch 'fix/usb_host_test_with_multiple_hubs' into 'master'
fix(ext_hub): Added processing waiting_release flag while dev changed to IDLE See merge request espressif/esp-idf!39322
2 parents 4084407 + 11382a2 commit 79d69bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/usb/ext_hub.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,11 @@ static bool device_set_next_stage(ext_hub_dev_t *ext_hub_dev, bool last_stage_pa
10641064
} else {
10651065
// Terminal stages, move to IDLE
10661066
next_stage = EXT_HUB_STAGE_IDLE;
1067+
EXT_HUB_ENTER_CRITICAL();
1068+
if (ext_hub_dev->dynamic.flags.waiting_release) {
1069+
call_proc_req_cb = _device_set_actions(ext_hub_dev, DEV_ACTION_RELEASE);
1070+
}
1071+
EXT_HUB_EXIT_CRITICAL();
10671072
}
10681073
ext_hub_dev->single_thread.stage = next_stage;
10691074
call_proc_req_cb = stage_need_process(next_stage);

0 commit comments

Comments
 (0)