tle8888 driver bug #803

undoing since this breaks start-up
This commit is contained in:
rusefi 2019-06-08 20:28:13 -04:00
parent 6f57a7f330
commit 787af95050
1 changed files with 5 additions and 5 deletions

View File

@ -249,17 +249,17 @@ static int tle8888_wake_driver(struct tle8888_priv *chip)
{
(void)chip;
// if (isIsrContext()) {
if (isIsrContext()) {
// this is for normal runtime
int wasLocked = lockAnyContext();
chSemSignalI(&tle8888_wake);
if (!wasLocked) {
unlockAnyContext();
}
// } else {
// // this is for start-up to not hang up
// chSemSignal(&tle8888_wake);
// }
} else {
// this is for start-up to not hang up
chSemSignal(&tle8888_wake);
}
return 0;
}