FATAL error running MRE blinking test fix #1137
This commit is contained in:
parent
a42dfa5e84
commit
551273a336
|
@ -315,6 +315,13 @@ static int tle8888_wake_driver(struct tle8888_priv *chip)
|
||||||
/* Entering a reentrant critical zone.*/
|
/* Entering a reentrant critical zone.*/
|
||||||
syssts_t sts = chSysGetStatusAndLockX();
|
syssts_t sts = chSysGetStatusAndLockX();
|
||||||
chSemSignalI(&tle8888_wake);
|
chSemSignalI(&tle8888_wake);
|
||||||
|
if (!port_is_isr_context()) {
|
||||||
|
/**
|
||||||
|
* chSemSignalI above requires rescheduling
|
||||||
|
* interrupt handlers have implicit rescheduling
|
||||||
|
*/
|
||||||
|
chDbgCheckClassS();
|
||||||
|
}
|
||||||
/* Leaving the critical zone.*/
|
/* Leaving the critical zone.*/
|
||||||
chSysRestoreStatusX(sts);
|
chSysRestoreStatusX(sts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue