projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c37682d
)
powerpc/pseries: Fix MSI-X interrupt querying
author
Michael Ellerman
<
[email protected]
>
Thu, 22 Jan 2009 20:54:31 +0000
(20:54 +0000)
committer
Benjamin Herrenschmidt
<
[email protected]
>
Wed, 11 Feb 2009 02:38:01 +0000
(13:38 +1100)
We need to increment i in the loop that queries what interrupts firmware
gave us, otherwise we'll incorrectly use the first value over and over.
Signed-off-by: Michael Ellerman <
[email protected]
>
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
arch/powerpc/platforms/pseries/msi.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/platforms/pseries/msi.c
b/arch/powerpc/platforms/pseries/msi.c
index f15222bbe136a1020de443d3ff6c434c152c8d4b..4af7aa3e2e0fca8925d2e5f6139f1d4982f73ae0 100644
(file)
--- a/
arch/powerpc/platforms/pseries/msi.c
+++ b/
arch/powerpc/platforms/pseries/msi.c
@@
-199,7
+199,7
@@
static int rtas_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
i = 0;
list_for_each_entry(entry, &pdev->msi_list, list) {
- hwirq = rtas_query_irq_number(pdn, i);
+ hwirq = rtas_query_irq_number(pdn, i
++
);
if (hwirq < 0) {
pr_debug("rtas_msi: error (%d) getting hwirq\n", rc);
return hwirq;