mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
irqchip/msi-lib: Refuse initialization when irq_write_msi_msg() is missing
MSI parent domains rely on the fact that the top level device domain provides a irq_write_msi_msg() callback. Check for that and if missing warn and refuse to initialize the device domain. Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/87a4xp35cn.ffs@tglx
This commit is contained in:
parent
6de23f81a5
commit
aa80869b77
|
|
@ -48,6 +48,9 @@ bool msi_lib_init_dev_msi_info(struct device *dev, struct irq_domain *domain,
|
|||
return false;
|
||||
}
|
||||
|
||||
if (WARN_ON_ONCE(!chip->irq_write_msi_msg))
|
||||
return false;
|
||||
|
||||
required_flags = pops->required_flags;
|
||||
|
||||
/* Is the target domain bus token supported? */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user