File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1341,8 +1341,12 @@ static esp_err_t _port_cmd_bus_suspend(port_t *port)
13411341 goto exit ;
13421342 }
13431343
1344+ // Here we are calling ll directly instead of hal, to allow the suspend/resume feature to be used as a managed usb
1345+ // component in all active IDF releases (Currently IDF 5.4.x, IDF 5.5.x and IDF 6.0) and all it's minor releases
1346+ // because the hal function usb_dwc_hal_port_check_if_suspended(port->hal) starts to be supported in IDF 5.5.2, (and IDF 5.4.2)
1347+
13441348 // Sanity check, the root port should have entered the suspended state after the SUSPEND_ENTRY_MS delay
1345- if (!usb_dwc_hal_port_check_if_suspended (port -> hal )) {
1349+ if (!usb_dwc_ll_hprt_get_port_suspend (port -> hal -> dev )) {
13461350 ret = ESP_ERR_NOT_FINISHED ;
13471351 goto exit ;
13481352 }
You can’t perform that action at this time.
0 commit comments