xiaoxiang781216 commented on code in PR #6965: URL: https://github.com/apache/incubator-nuttx/pull/6965#discussion_r990789112
########## drivers/usbhost/usbhost_xboxcontroller.c: ########## @@ -160,7 +160,7 @@ struct usbhost_state_s uint8_t nwaiters; /* Number of threads waiting for controller data */ sem_t waitsem; /* Used to wait for controller data */ int16_t crefs; /* Reference count on the driver instance */ - sem_t exclsem; /* Used to maintain mutual exclusive access */ + mutex_t lock; /* Used to maintain mutual exclusive access */ struct work_s work; /* For interacting with the worker thread */ FAR uint8_t *tbuffer; /* The allocated transfer buffer */ FAR uint8_t obuffer[20]; /* The fixed output transfer buffer */ Review Comment: Done. -- 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