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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2018 19:08:52 +0000 (11:08 -0800)
commita91394b21ddf43922ff974138446ee7920a08127
treed51da181cb08a3ad8b3dffe5cc491fb4c5e16b00
parentdf7ada33d6dc57926e25e4cf1a22e80b4f385884
remoteproc: qcom: q6v5: Propagate EPROBE_DEFER

commit d5269c4553a64b6882f2c019ae21b783a0984a83 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/remoteproc/qcom_q6v5.c