staging: fsl-mc: properly set hwirq in msi set_desc
authorStuart Yoder <stuart.yoder@nxp.com>
Wed, 22 Jun 2016 21:40:51 +0000 (16:40 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2016 00:14:03 +0000 (17:14 -0700)
commitadf72b5ba372ca9006f8cdcf9c0b902579f7da9f
tree885ab25a4a4c5b774ed8bde99ffd20f39fa1e461
parenta137fc805838a444fa934bfd918eba30396f933c
staging: fsl-mc: properly set hwirq in msi set_desc

For an MSI domain the hwirq is an arbitrary but unique
id to identify an interrupt.  Previously the hwirq was set to
the MSI index of the interrupt, but that only works if there is
one DPRC.  Additional DPRCs require an expanded namespace.  Use
both the ICID (which is unique per DPRC) and the MSI index to
compose a hwirq value.

Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/mc-msi.c
This page took 0.025738 seconds and 5 git commands to generate.