Name

of_irq_find_parent — Given a device node, find its interrupt parent node

Synopsis

struct device_node * of_irq_find_parent (struct device_node * child);
 

Arguments

child

Pointer to device node

Description

Walk up the tree from child to find a node containing property #interrupt-cells. Each step of the walk goes to the node referenced by the phandle in property interrupt-parent if it exists, otherwise the parent of the node. The node containing property #interrupt-cells is the interrupt parent node.

The path of the walk may be short-circuited if no interrupt-parent property exists and (of_irq_workarounds & OF_IMAP_NO_PHANDLE).

Return

Pointer to the interrupt parent node, or NULL if the interrupt parent could not be determined.