diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2009-01-22 15:54:31 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-02-10 21:38:01 -0500 |
commit | e27ed698b88b3387d326e84c0bbe9f83e19c747b (patch) | |
tree | a0542556f79b75aa9f6967b47c50b692115bcc2f /arch/powerpc/platforms/pseries | |
parent | c37682d907a615c9a8751748b58e9ba47d415429 (diff) |
powerpc/pseries: Fix MSI-X interrupt querying
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 <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries')
-rw-r--r-- | arch/powerpc/platforms/pseries/msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/platforms/pseries/msi.c index f15222bbe136..4af7aa3e2e0f 100644 --- 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) | |||
199 | 199 | ||
200 | i = 0; | 200 | i = 0; |
201 | list_for_each_entry(entry, &pdev->msi_list, list) { | 201 | list_for_each_entry(entry, &pdev->msi_list, list) { |
202 | hwirq = rtas_query_irq_number(pdn, i); | 202 | hwirq = rtas_query_irq_number(pdn, i++); |
203 | if (hwirq < 0) { | 203 | if (hwirq < 0) { |
204 | pr_debug("rtas_msi: error (%d) getting hwirq\n", rc); | 204 | pr_debug("rtas_msi: error (%d) getting hwirq\n", rc); |
205 | return hwirq; | 205 | return hwirq; |