This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new a28367f507 drivers/usbdev/cdcncm.c: Fix issue with unplug/replug of USB causing link not to re-establish a28367f507 is described below commit a28367f507022b9e243c8a6fd773689d12bb7686 Author: Tim Hardisty <56726697+tim...@users.noreply.github.com> AuthorDate: Tue May 20 11:30:29 2025 +0100 drivers/usbdev/cdcncm.c: Fix issue with unplug/replug of USB causing link not to re-establish Signed-off-by: Tim Hardisty <t...@jti.uk.com> --- drivers/usbdev/cdcncm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usbdev/cdcncm.c b/drivers/usbdev/cdcncm.c index 7c2aa36455..522101cf8d 100644 --- a/drivers/usbdev/cdcncm.c +++ b/drivers/usbdev/cdcncm.c @@ -2864,6 +2864,9 @@ static int cdcncm_setup(FAR struct usbdevclass_driver_s *driver, static void cdcncm_disconnect(FAR struct usbdevclass_driver_s *driver, FAR struct usbdev_s *dev) { + FAR struct cdcncm_driver_s *self = (FAR struct cdcncm_driver_s *)driver; + + cdcncm_resetconfig(self); uinfo("\n"); }