]> git.hungrycats.org Git - linux/commit
of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_parse_raw()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 29 May 2024 19:59:20 +0000 (14:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2024 07:53:22 +0000 (09:53 +0200)
commite4d57f9a6d2187d18e62fc9e6df039f536c419a3
treefbd812dadb42e8834db7345a7f9f7dd3abf87fd6
parent378f92a4e79c11c45ac65fc51046570d7a1f9463
of/irq: Factor out parsing of interrupt-map parent phandle+args from of_irq_parse_raw()

[ Upstream commit 935df1bd40d43c4ee91838c42a20e9af751885cc ]

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: Marc Zyngier <maz@kernel.org>
Tested-by: Anup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20240529-dt-interrupt-map-fix-v2-1-ef86dc5bcd2a@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/of/irq.c
drivers/of/of_private.h