]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: misc: irq-uclass: Update irq_get_by_index
authorPatrick Rudolph <patrick.rudolph@9elements.com>
Wed, 23 Oct 2024 13:20:05 +0000 (15:20 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 23:24:13 +0000 (17:24 -0600)
commitf116feadea7be9afe412c25779dfcf241c121715
treed2393bdb3a798da9bf23a6d909f8fa8a4ba7c658
parentdf8d759d9db17b55d6283a9a1d84d196e9cc1dd4
drivers: misc: irq-uclass: Update irq_get_by_index

Support reading the "interrupts" property from the devicetree in case
the "interrupts-extended" property isn't found. As the "interrupts"
property is commonly used, this allows to parse all existing FDT and
makes irq_get_by_index() more useful.

The "interrupts" property doesn't contain a phandle as "interrupts-extended"
does, so implement a new method to locate the interrupt-parent called
irq_get_interrupt_parent().

TEST: Read the interrupts from the GIC node for ACPI MADT generation.

Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-by: Moritz Fischer <moritzf@google.com>
arch/sandbox/dts/test.dts
drivers/misc/irq-uclass.c
include/irq.h
test/dm/irq.c