mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
irqdomain: Make of_phandle_args_to_fwspec() generally available
of_phandle_args_to_fwspec() can be generally useful to code extracting a DT of_phandle and using an irq_fwspec to use the hierarchical irqdomain API. Make it visible to the rest of the kernel, including modules. Link: https://lore.kernel.org/r/20210929163847.2807812-2-maz@kernel.org Tested-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
e4e737bb5c
commit
0ab8d0f6ae
2 changed files with 7 additions and 3 deletions
|
@ -64,6 +64,10 @@ struct irq_fwspec {
|
|||
u32 param[IRQ_DOMAIN_IRQ_SPEC_PARAMS];
|
||||
};
|
||||
|
||||
/* Conversion function from of_phandle_args fields to fwspec */
|
||||
void of_phandle_args_to_fwspec(struct device_node *np, const u32 *args,
|
||||
unsigned int count, struct irq_fwspec *fwspec);
|
||||
|
||||
/*
|
||||
* Should several domains have the same device node, but serve
|
||||
* different purposes (for example one domain is for PCI/MSI, and the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue