]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite40c1e03e70f7bb2da0b14b2e4a3ec52348ecf6d
tree885ab25a4a4c5b774ed8bde99ffd20f39fa1e461
parentdb68592229b87848b4fbf4ce272f449877b8a725
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