parent
bb1ff2e965
commit
3b87cd9add
|
@ -249,17 +249,17 @@ static int tle8888_wake_driver(struct tle8888_priv *chip)
|
||||||
{
|
{
|
||||||
(void)chip;
|
(void)chip;
|
||||||
|
|
||||||
// if (isIsrContext()) {
|
if (isIsrContext()) {
|
||||||
// this is for normal runtime
|
// this is for normal runtime
|
||||||
int wasLocked = lockAnyContext();
|
int wasLocked = lockAnyContext();
|
||||||
chSemSignalI(&tle8888_wake);
|
chSemSignalI(&tle8888_wake);
|
||||||
if (!wasLocked) {
|
if (!wasLocked) {
|
||||||
unlockAnyContext();
|
unlockAnyContext();
|
||||||
}
|
}
|
||||||
// } else {
|
} else {
|
||||||
// // this is for start-up to not hang up
|
// this is for start-up to not hang up
|
||||||
// chSemSignal(&tle8888_wake);
|
chSemSignal(&tle8888_wake);
|
||||||
// }
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue