Skip to content
Commit 935df1bd authored by Rob Herring (Arm)'s avatar Rob Herring (Arm)
Browse files

of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_parse_raw()



Factor out the parsing of interrupt-map interrupt parent phandle and its
arg cells to a separate function, of_irq_parse_imap_parent(), so that it
can be used in other parsing scenarios (e.g. fw_devlink).

There was a refcount leak on non-matching entries when iterating thru
"interrupt-map" which is fixed.

Tested-by: default avatarMarc Zyngier <maz@kernel.org>
Tested-by: default avatarAnup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20240529-dt-interrupt-map-fix-v2-1-ef86dc5bcd2a@kernel.org
Signed-off-by: default avatarRob Herring (Arm) <robh@kernel.org>
parent 321e4fa6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment