[MODAP-55016][COMMON] driver: chub: No new thread when running
[GitHub/MotorolaMobilityLLC/kernel-slsi.git] / drivers / staging / nanohub / chub.c
index 39174abb45794e2d42a64a301ee90f28d243b722..688b69bba1538a8b3e0609cb5226561ad6aab130 100644 (file)
@@ -1047,9 +1047,11 @@ int contexthub_poweron(struct contexthub_ipc_info *ipc)
                                        atomic_read(&ipc->chub_status), ret, ipc->poweron_lock.flag);
                        }
                }
-       }
+       } else
+       /* CHUB already went through poweron sequence */
+               return -EINVAL;
 
-       return ret;
+       return 0;
 }
 
 static int contexthub_download_and_check_image(struct contexthub_ipc_info *ipc, enum ipc_region reg)