diff options
author | Maulik Shah <mkshah@codeaurora.org> | 2020-09-28 10:02:00 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-29 10:11:02 +0100 |
commit | 88acb494448a42662aadf0a83761ac07d1e359aa (patch) | |
tree | 3c3a74fe2baf74e5fce330ee8aafea0fb16b585f /arch | |
parent | 82418bfc0c6916089b14ae55e67676d0f198cb60 (diff) | |
download | linux-stable-88acb494448a42662aadf0a83761ac07d1e359aa.tar.gz linux-stable-88acb494448a42662aadf0a83761ac07d1e359aa.tar.bz2 linux-stable-88acb494448a42662aadf0a83761ac07d1e359aa.zip |
pinctrl: qcom: Use return value from irq_set_wake() call
[ Upstream commit f41aaca593377a4fe3984459fd4539481263b4cd ]
msmgpio irqchip was not using return value of irq_set_irq_wake() callback
since previously GIC-v3 irqchip neither had IRQCHIP_SKIP_SET_WAKE flag nor
it implemented .irq_set_wake callback. This lead to irq_set_irq_wake()
return error -ENXIO.
However from 'commit 4110b5cbb014 ("irqchip/gic-v3: Allow interrupt to be
configured as wake-up sources")' GIC irqchip has IRQCHIP_SKIP_SET_WAKE
flag.
Use return value from irq_set_irq_wake() and irq_chip_set_wake_parent()
instead of always returning success.
Fixes: e35a6ae0eb3a ("pinctrl/msm: Setup GPIO chip in hierarchy")
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Tested-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Acked-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/1601267524-20199-3-git-send-email-mkshah@codeaurora.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions