OSDN Git Service

soc: qcom: smsm: Implement support for get_irqchip_state
authorStephan Gerhold <stephan@gerhold.net>
Mon, 12 Jul 2021 13:57:02 +0000 (15:57 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 5 Aug 2021 03:20:03 +0000 (22:20 -0500)
commitc73a6852b42c8c80cc46590dbbcfa6c448fdbc63
treea531affc89a36dfee5df5d8cc829b15bbb623174
parentad68c620b7b296aab9cbe61802e329c04fde8385
soc: qcom: smsm: Implement support for get_irqchip_state

At the moment there is no way for drivers to get the current state
of the interrupt signal reported by a remote processor. The irqchip
API has generic functionality for this, using irq_get_irqchip_state().

Implement support for getting the IRQCHIP_STATE_LINE_LEVEL by reading
the remote state and checking the bit for the specified IRQ.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Link: https://lore.kernel.org/r/20210712135703.324748-1-stephan@gerhold.net
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/soc/qcom/smsm.c