]> git.ipfire.org Git - thirdparty/linux.git/commit
spmi: mtk-pmif: Implement Request Capable Slave (RCS) interrupt
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 23 Jan 2026 18:20:32 +0000 (10:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 18:24:38 +0000 (19:24 +0100)
commitab1b3469fc284ad8c7b28f881329448786bdc252
treed80c4cfc3841396ea888578db27cbc16bc4c8544
parent63cbabb003ba314be113700ca58ec320b6ce2b33
spmi: mtk-pmif: Implement Request Capable Slave (RCS) interrupt

Add support for the per-bus RCS interrupt by adding a new linear
irqdomain and its irqchip.

The SPMI controller will raise an interrupt when any of the SPMI
connected devices' irq needs attention (whenever any interrupt
fires on any SID) in one of four registers, where each register
holds four sets of four bits of information about a SID interrupt.

This controller's RCS interrupt status knowledge is limited to the
address of the SID that raised an interrupt, but does not have any
details about the devices irq numbers: as this may change with a
future SPMI controller IP version, the devicetree is meant to hold
three cells, where the first one is the SPMI SID interrupt number,
the second one is a device interrupt number, and the third one is
the irq sense type.

Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://patch.msgid.link/20260123182039.224314-5-sboyd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-mtk-pmif.c