]> git.ipfire.org Git - thirdparty/linux.git/commit
irqdomain: Support three-cell scheme interrupts
authorYixun Lan <dlan@gentoo.org>
Tue, 25 Mar 2025 22:06:19 +0000 (06:06 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 7 Apr 2025 07:36:09 +0000 (09:36 +0200)
commit0a02e1f4a54ace747304687ced3b76d159e58914
treeff63db471a2f82a432602ab223074bdd88eac0cc
parent0af2f6be1b4281385b618cb86ad946eded089ac8
irqdomain: Support three-cell scheme interrupts

Add new function *_twothreecell() to extend support to parse three-cell
interrupts which encoded as <instance hwirq irqflag>, the translate
function will retrieve irq number and flag from last two cells.

This API will be used in gpio irq driver which need to work with
two or three cells cases.

Signed-off-by: Yixun Lan <dlan@gentoo.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250326-04-gpio-irq-threecell-v3-1-aab006ab0e00@gentoo.org
include/linux/irqdomain.h
kernel/irq/irqdomain.c