Fixes to avoid some hang conditions using STM32 CAN

This commit is contained in:
Gregory Nutt
2014-09-17 08:35:03 -06:00
parent f285498921
commit b37c0a832a
2 changed files with 85 additions and 68 deletions
-13
View File
@@ -1235,19 +1235,6 @@ static int can_txinterrupt(int irq, void *context)
}
}
/* Were all transmissions complete in all mailboxes when we entered this
* handler?
*/
if ((regval & CAN_ALL_MAILBOXES) == CAN_ALL_MAILBOXES)
{
/* Yes.. disable further TX interrupts */
regval = can_getreg(priv, STM32_CAN_IER_OFFSET);
regval &= ~CAN_IER_TMEIE;
can_putreg(priv, STM32_CAN_IER_OFFSET, regval);
}
return OK;
}