You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/09/16 02:33:08 UTC

(nuttx) 02/03: drivers/usedev: remove unnecessary mdelay because remain req info had beed push to serial buffer

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

commit e0d82fdf3a9c8418d78d3a41f95ef96dc43a034d
Author: dongjiuzhu1 <do...@xiaomi.com>
AuthorDate: Sun Apr 28 11:38:36 2024 +0800

    drivers/usedev: remove unnecessary mdelay because remain req info had beed push to serial buffer
    
    this mdelay causes cpu busy wait, affects other process running.
    
    Signed-off-by: dongjiuzhu1 <do...@xiaomi.com>
---
 drivers/usbdev/cdcacm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usbdev/cdcacm.c b/drivers/usbdev/cdcacm.c
index d0b8365d2a..efffdd1a49 100644
--- a/drivers/usbdev/cdcacm.c
+++ b/drivers/usbdev/cdcacm.c
@@ -1491,7 +1491,6 @@ static void cdcacm_unbind(FAR struct usbdevclass_driver_s *driver,
        */
 
       cdcacm_resetconfig(priv);
-      up_mdelay(50);
 
       /* Free the pre-allocated control request */