History

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.

Linus Walleij committed 13 years ago

Commit 94a63da1 parent 275e31b1 file · +4 −1Browse files

Unified · Split

kernel/irq/irqdomain.c+4−1
@@ -143,7 +143,10 @@ static unsigned int irq_domain_legacy_revmap(struct irq_domain *domain, · 142 unmodified lines
143143 * irq_domain_add_simple() - Allocate and register a simple irq_domain.
144144 * @of_node: pointer to interrupt controller's device tree node.
145145 * @size: total number of irqs in mapping
146− * @first_irq: first number of irq block assigned to the domain
146+ * @first_irq: first number of irq block assigned to the domain,
147+ * pass zero to assign irqs on-the-fly. This will result in a
148+ * linear IRQ domain so it is important to use irq_create_mapping()
149+ * for each used IRQ, especially when SPARSE_IRQ is enabled.
147150 * @ops: map/unmap domain callbacks
148151 * @host_data: Controller private data pointer
149152 *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t