Browse Source
The usbd_class_remove_all removes all registered classes from a configuration. However, it previously left the uds_ctx back-pointer to the usdb_context set, meaning that if the class is re-registered with the usbd_register_class function, this fails with the error message "Class registered to other context at different speed" due to uds_ctx being set to another context. This patch corrects the issue by clearing udc_ctx after usbd_class_shutdown has been called. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>pull/91376/head
1 changed files with 1 additions and 0 deletions
Loading…
Reference in new issue