remoteproc: qcom: wcnss: Fix handling of IRQs
authorSireesh Kodali <sireeshkodali1@gmail.com>
Thu, 26 May 2022 14:17:39 +0000 (19:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:11:24 +0000 (11:11 +0200)
commit23f6160461c87daa46819ae7a08d19793de6631b
tree9eb908e9de88a3a92f55b65c04028b17ed0b0a29
parente1e3b6517ddbb0e9934785d3bd94e61fde05c6ec
remoteproc: qcom: wcnss: Fix handling of IRQs

[ Upstream commit bed0adac1ded4cb486ba19a3a7e730fbd9a1c9c6 ]

The wcnss_get_irq function is expected to return a value > 0 in the
event that an IRQ is succssfully obtained, but it instead returns 0.
This causes the stop and ready IRQs to never actually be used despite
being defined in the device-tree. This patch fixes that.

Fixes: aed361adca9f ("remoteproc: qcom: Introduce WCNSS peripheral image loader")
Signed-off-by: Sireesh Kodali <sireeshkodali1@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220526141740.15834-2-sireeshkodali1@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_wcnss.c