Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94a63da0 authored by Linus Walleij's avatar Linus Walleij Committed by Grant Likely
Browse files

irqdomain: document the simple domain first_irq



The first_irq needs to be zero to get a linear domain and that
comes with special semantics. We want to simplify this going
forward but some documentation never hurts.

Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent 275e31b1
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -143,7 +143,10 @@ static unsigned int irq_domain_legacy_revmap(struct irq_domain *domain,
 * irq_domain_add_simple() - Allocate and register a simple irq_domain.
 * irq_domain_add_simple() - Allocate and register a simple irq_domain.
 * @of_node: pointer to interrupt controller's device tree node.
 * @of_node: pointer to interrupt controller's device tree node.
 * @size: total number of irqs in mapping
 * @size: total number of irqs in mapping
 * @first_irq: first number of irq block assigned to the domain
 * @first_irq: first number of irq block assigned to the domain,
 *	pass zero to assign irqs on-the-fly. This will result in a
 *	linear IRQ domain so it is important to use irq_create_mapping()
 *	for each used IRQ, especially when SPARSE_IRQ is enabled.
 * @ops: map/unmap domain callbacks
 * @ops: map/unmap domain callbacks
 * @host_data: Controller private data pointer
 * @host_data: Controller private data pointer
 *
 *