aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2016-01-26 13:52:26 +0000
committerThomas Gleixner <[email protected]>2016-01-26 16:00:15 +0100
commit14a0db3cdd114da757197193f66786e63649c91e (patch)
tree2baf3f35a85954d6effc0a43aae3ee3294a128dc /tools/lib/api
parent530cbe100ef7587aa5b5ac3a4b670cda4d50e598 (diff)
of: MSI: Simplify irqdomain lookup
So far, when trying to associate a device with its MSI domain, we first lookup the domain using a MSI token, and if this doesn't return anything useful, we pick up any domain matching the same node. This logic is broken for two reasons: 1) Only the generic MSI code (PCI or platform) sets this token to PCI/MSI or platform MSI. So we're guaranteed that if there is something to be found, we will find it with the first call. 2) If we have a convoluted situation where: - a single node implements both wired and MSI interrupts - MSI support for that HW hasn't been compiled in we'll end up using the wired domain for MSIs anyway, and things break badly. So let's just remove __of_get_msi_domain, and replace it by a direct call to irq_find_matching_host, because that's what we really want. Signed-off-by: Marc Zyngier <[email protected]> Acked-by: Rob Herring <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Frank Rowand <[email protected]> Cc: Grant Likely <[email protected]> Cc: Thomas Petazzoni <[email protected]> Cc: Jiang Liu <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/lib/api')
0 files changed, 0 insertions, 0 deletions