OSDN Git Service

remoteproc: qcom: q6v5: Propagate EPROBE_DEFER
authorBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 20 Sep 2018 01:51:51 +0000 (18:51 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 26 Sep 2018 17:10:11 +0000 (10:10 -0700)
commitd5269c4553a64b6882f2c019ae21b783a0984a83
tree7089d558ee38644679bba305c2d3c68e66e1b57b
parent3b0d1b65c19f6650dce40d0d188df415cd0b62d7
remoteproc: qcom: q6v5: Propagate EPROBE_DEFER

In the case that the interrupts fail to result because of the
interrupt-controller not yet being registered the
platform_get_irq_byname() call will fail with -EPROBE_DEFER, but passing
this into devm_request_threaded_irq() will result in -EINVAL being
returned, the driver is therefor not reprobed later.

Fixes: 3b415c8fb263 ("remoteproc: q6v5: Extract common resource handling")
Cc: stable@vger.kernel.org
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5.c