jlaitine commented on code in PR #17010:
URL: https://github.com/apache/nuttx/pull/17010#discussion_r2349832488


##########
drivers/usbdev/cdcacm.c:
##########
@@ -313,6 +313,10 @@ static const struct uart_ops_s g_uartops =
   cdcuart_sendbuf        /* sendbuf */
 };
 
+/* Mutex to protect device initialization / uninitialization*****************/
+
+static mutex_t g_init_lock = NXMUTEX_INITIALIZER;

Review Comment:
   Then what do you suggest? Locking driver using FS inode lock? 
   
   Whether a driver is registered in file system or not is completely 
irrelevant to the initialization or uninitialization of the driver. These 
things must not be tightly coupled together.
   



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to