acassis commented on code in PR #9287: URL: https://github.com/apache/nuttx/pull/9287#discussion_r1195350305
########## drivers/usbhost/usbhost_hub.c: ########## @@ -1513,10 +1543,20 @@ static int usbhost_disconnected(struct usbhost_class_s *hubclass) work_cancel(LPWORK, &priv->work); - /* Schedule the disconnection work */ + if (priv->no_delay) + { + /* Disconnect immediately */ - ret = work_queue(LPWORK, &priv->work, + usbhost_disconnect_event(hubclass); + } + else + { + /* Schedule the disconnection work */ + + ret = work_queue(LPWORK, &priv->work, usbhost_disconnect_event, hubclass, 0); Review Comment: ```suggestion usbhost_disconnect_event, hubclass, 0); -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org