arch/arm/src/cxd56xx/cxd56_emmc.c: Don't wait for the semaphore if the

task was canceled.
This commit is contained in:
Ouss4 2020-04-05 20:27:03 +01:00 committed by patacongo
parent dda47dd4a9
commit a5c619c207

View File

@ -441,21 +441,11 @@ static void emmc_send(int datatype, uint32_t opcode, uint32_t arg,
/* Wait for command or data transfer done */
do
{
ret = emmc_takesem(&g_waitsem);
/* The only expected error is ECANCELED which would occur if the
* calling thread were canceled.
*/
DEBUGASSERT(ret == OK || ret == -ECANCELED);
/* REVISIT: emmc_taksem error is lost. This loop needs to save
* the return from takesem and return it at the end.
*/
if (ret < 0)
{
return;
}
while (ret < 0);
/* Restore interrupt mask */