summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Aberg <maberg@gaisler.com>2017-04-13 14:08:50 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2017-05-14 12:31:58 +0200
commit3a650d3b2c376ecfb97fa410251991ea82d200f6 (patch)
tree7c684ac7a7c551d89d7d6bcd3d91eba29cfb1f50
parentleon, grcan: redesigned bus-off and AHB error handling (diff)
downloadrtems-3a650d3b2c376ecfb97fa410251991ea82d200f6.tar.bz2
leon, grcan: RTEMS_NO_TIMEOUT on tx_sem
-rw-r--r--c/src/lib/libbsp/sparc/shared/can/grcan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/can/grcan.c b/c/src/lib/libbsp/sparc/shared/can/grcan.c
index 45b7af1c54..1348d7ab41 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 */