mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
irqdomain: Mark fwnodes when their irqdomain is added/removed
This allows fw_devlink to recognize irqdomain drivers that don't use the device-driver model to initialize the device. fw_devlink will use this information to make sure consumers of such irqdomain aren't indefinitely blocked from probing, waiting for the irqdomain device to appear and bind to a driver. Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Saravana Kannan <saravanak@google.com> Link: https://lore.kernel.org/r/20210205222644.2357303-7-saravanak@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
74c782cff7
commit
ed1054a02a
1 changed files with 2 additions and 0 deletions
|
@ -205,6 +205,7 @@ struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
|
||||||
}
|
}
|
||||||
|
|
||||||
fwnode_handle_get(fwnode);
|
fwnode_handle_get(fwnode);
|
||||||
|
fwnode_dev_initialized(fwnode, true);
|
||||||
|
|
||||||
/* Fill structure */
|
/* Fill structure */
|
||||||
INIT_RADIX_TREE(&domain->revmap_tree, GFP_KERNEL);
|
INIT_RADIX_TREE(&domain->revmap_tree, GFP_KERNEL);
|
||||||
|
@ -253,6 +254,7 @@ void irq_domain_remove(struct irq_domain *domain)
|
||||||
|
|
||||||
pr_debug("Removed domain %s\n", domain->name);
|
pr_debug("Removed domain %s\n", domain->name);
|
||||||
|
|
||||||
|
fwnode_dev_initialized(domain->fwnode, false);
|
||||||
fwnode_handle_put(domain->fwnode);
|
fwnode_handle_put(domain->fwnode);
|
||||||
if (domain->flags & IRQ_DOMAIN_NAME_ALLOCATED)
|
if (domain->flags & IRQ_DOMAIN_NAME_ALLOCATED)
|
||||||
kfree(domain->name);
|
kfree(domain->name);
|
||||||
|
|
Loading…
Reference in a new issue