You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/14 10:20:03 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6068: driver/mmcsdio: do not hold the semaphore on interrupt context
xiaoxiang781216 commented on code in PR #6068:
URL: https://github.com/apache/incubator-nuttx/pull/6068#discussion_r850304334
##########
drivers/mmcsd/mmcsd_sdio.c:
##########
@@ -256,7 +256,7 @@ static int mmcsd_takesem(FAR struct mmcsd_state_s *priv)
* waiting)
*/
- if (up_interrupt_context() == false)
+ if (up_interrupt_context() == false && !sched_idletask())
Review Comment:
Done.
##########
drivers/mmcsd/mmcsd_sdio.c:
##########
@@ -282,7 +282,7 @@ static int mmcsd_takesem(FAR struct mmcsd_state_s *priv)
static void mmcsd_givesem(FAR struct mmcsd_state_s *priv)
{
- if (up_interrupt_context() == false)
+ if (up_interrupt_context() == false && !sched_idletask())
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org