From ec79a3a81177b66b551c0ee3c736ddbafd19882d Mon Sep 17 00:00:00 2001 From: Stanimir Varbanov Date: Fri, 21 Aug 2015 17:34:05 +0300 Subject: [PATCH] remoteproc: tz_pil: skip waiting ready irq if it not provided Signed-off-by: Stanimir Varbanov --- drivers/remoteproc/qcom_tz_pil.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/remoteproc/qcom_tz_pil.c b/drivers/remoteproc/qcom_tz_pil.c index cdc2e1f233f2..2f43b00fee13 100644 --- a/drivers/remoteproc/qcom_tz_pil.c +++ b/drivers/remoteproc/qcom_tz_pil.c @@ -243,7 +243,6 @@ static int qproc_load(struct rproc *rproc, const struct firmware *fw) bool relocatable = false; phys_addr_t paddr; - ret = qproc_scm_clk_enable(qproc); if (ret) return ret; @@ -341,6 +340,10 @@ static int qproc_start(struct rproc *rproc) goto unroll_clocks; } + /* if ready irq not provided skip waiting */ + if (qproc->ready_irq < 0) + goto done; + ret = wait_for_completion_timeout(&qproc->start_done, msecs_to_jiffies(10000)); if (ret == 0) { dev_err(qproc->dev, "start timed out\n"); @@ -349,8 +352,8 @@ static int qproc_start(struct rproc *rproc) goto unroll_clocks; } - - dev_err(qproc->dev, "start successful\n"); +done: + dev_info(qproc->dev, "start successful\n"); return 0; -- 2.39.5