From: Stanimir Varbanov Date: Fri, 21 Aug 2015 14:34:05 +0000 (+0300) Subject: remoteproc: tz_pil: skip waiting ready irq if it not provided X-Git-Tag: KARO-TXSD-2017-03-24~88^2~32^2~19 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ec79a3a81177b66b551c0ee3c736ddbafd19882d;p=karo-tx-linux.git remoteproc: tz_pil: skip waiting ready irq if it not provided Signed-off-by: Stanimir Varbanov --- 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;