History

genirq/irqdomain: Make sure all irq domain flags are distinct

This was noticed when printing debugfs for MSIs on my ARM64 server. The new dstate IRQD_MSI_NOMASK_QUIRK came out surprisingly while it should only be the x86 stuff for the time being... The new MSI quirk flag uses the same bit as IRQ_DOMAIN_NAME_ALLOCATED which is oddly defined as bit 6 for no good reason. Switch it to the non used bit 1.

Zenghui Yu committed 6 years ago

Commit 25462871 parent cba64371 file · +1 −1Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/irqdomain.h+1−1
@@ -192,7 +192,7 @@ enum { · 191 unmodified lines
192192 IRQ_DOMAIN_FLAG_HIERARCHY = (1 << 0),
193193
194194 /* Irq domain name was allocated in __irq_domain_add() */
195− IRQ_DOMAIN_NAME_ALLOCATED = (1 << 6),
195+ IRQ_DOMAIN_NAME_ALLOCATED = (1 << 1),
196196
197197 /* Irq domain is an IPI domain with virq per cpu */
198198 IRQ_DOMAIN_FLAG_IPI_PER_CPU = (1 << 2),