Change-Id: I69d2ff453d915dc50f8d005c4f52bac86cb05fe7
Signed-off-by: Sukwon Ryoo <sw.ryoo@samsung.com>
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)
nonseekable_open(inode, file);
#ifdef CONFIG_NANOHUB_MAILBOX
io = file->private_data;
- nanohub_reset(io->data);
- io->data->thread = kthread_run(nanohub_kthread, io->data, "nanohub");
+ if (!nanohub_reset(io->data))
+ io->data->thread = kthread_run(nanohub_kthread, io->data, "nanohub");
udelay(30);
#endif
return 0;