]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: qcom: smp2p: Add irqchip state support
authorChris Lew <chris.lew@oss.qualcomm.com>
Tue, 27 Jan 2026 10:38:45 +0000 (16:08 +0530)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Mar 2026 01:23:23 +0000 (20:23 -0500)
commit8a9a7b9d14c21d060301a8dd4a676ccb4ade5870
treecb8d8a49d81337d5bf12040b6807f5bbd986d233
parent7a7d24a14a009691a1af6bfe45b210521635db5b
soc: qcom: smp2p: Add irqchip state support

A remoteproc booted during earlier boot stages such as UEFI or the
bootloader, may need to be attached to without restarting the remoteproc
hardware. To do this the remoteproc will need to check the ready and
handover states in smp2p without an interrupt notification. Create
qcom_smp2p_start_in() to initialize the shadow state without notifying
clients because these early events happened in the past.

Add support for the .irq_get_irqchip_state callback so remoteproc can
read the current state of the fatal, ready and handover bits.

Signed-off-by: Chris Lew <chris.lew@oss.qualcomm.com>
Signed-off-by: Deepak Kumar Singh <deepak.singh@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260127-smp2pv2-v3-1-4060b859b1e2@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smp2p.c