]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Wed, 17 Aug 2022 12:24:06 +0000 (14:24 +0200)
commitc83bd8e9bd1febdd029dd314e33f360f63d0a4d8
tree947d782f2d279defa0a165f8fb0a1ba2a3e7e504
parentfb677617f43eb54836a7e3ed148c891d705e9527
remoteproc: qcom: wcnss: Fix handling of IRQs

[ Upstream commit 506eaf6fe7401aa3f7b1cc8c842e2caabfbb1ee0 ]

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: b0354c437fc6 ("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