[rtems commit] leon, grcan: RTEMS_NO_TIMEOUT on tx_sem
Daniel Hellstrom
danielh at rtems.org
Sun May 14 10:34:28 UTC 2017
Module: rtems
Branch: master
Commit: 3a650d3b2c376ecfb97fa410251991ea82d200f6
Changeset: http://git.rtems.org/rtems/commit/?id=3a650d3b2c376ecfb97fa410251991ea82d200f6
Author: Martin Aberg <maberg at gaisler.com>
Date: Thu Apr 13 14:08:50 2017 +0200
leon, grcan: RTEMS_NO_TIMEOUT on tx_sem
---
c/src/lib/libbsp/sparc/shared/can/grcan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c
index 45b7af1..1348d7a 100644
--- a/c/src/lib/libbsp/sparc/shared/can/grcan.c
+++ b/c/src/lib/libbsp/sparc/shared/can/grcan.c
@@ -1051,7 +1051,7 @@ static int grcan_wait_txspace(struct grcan_priv *pDev, int min)
/* Wait for IRQ to fire only if it has been triggered */
if (wait) {
- if (rtems_semaphore_obtain(pDev->tx_sem, RTEMS_WAIT, 100) ==
+ if (rtems_semaphore_obtain(pDev->tx_sem, RTEMS_WAIT, RTEMS_NO_TIMEOUT) ==
RTEMS_UNSATISFIED) {
/* Device driver has flushed us, this may be due to another thread has
* closed the device, this is to avoid deadlock */
More information about the vc
mailing list