hujun260 commented on code in PR #15506:
URL: https://github.com/apache/nuttx/pull/15506#discussion_r1916093959
##########
arch/arm/src/lpc17xx_40xx/lpc17_40_usbdev.c:
##########
@@ -1181,12 +1204,26 @@ static int lpc17_40_wrrequest(struct lpc17_40_ep_s
*privep)
{
usbtrace(TRACE_COMPLETE(privep->epphy), privreq->req.xfrd);
privep->txnullpkt = 0;
- lpc17_40_reqcomplete(privep, OK);
+ lpc17_40_reqcomplete_nolock(privep, OK);
}
return OK;
}
+static int lpc17_40_wrrequest(struct lpc17_40_ep_s *privep)
+{
+ int ret;
+
+ irqstate_t flags = spin_lock_irqsave(&privep->dev->lock);
+ sched_lock();
Review Comment:
remove one sched_lock();
--
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]