Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67393
b: refs/heads/master
c: fcbe809
h: refs/heads/master
i:
  67391: c983b06
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Oct 2, 2007
1 parent ee99f86 commit 749704b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d9303d662fa3fca8a6d27dee82b961a5f5524f20
refs/heads/master: fcbe8090a001522f98ad6f3146f0a1d9fa473821
17 changes: 3 additions & 14 deletions trunk/arch/powerpc/platforms/pseries/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,29 +189,22 @@ static int rtas_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)

if (rc != nvec) {
pr_debug("rtas_msi: rtas_change_msi() failed\n");

/*
* In case of an error it's not clear whether the device is
* left with MSI enabled or not, so we explicitly disable.
*/
goto out_free;
return rc;
}

i = 0;
list_for_each_entry(entry, &pdev->msi_list, list) {
hwirq = rtas_query_irq_number(pdn, i);
if (hwirq < 0) {
rc = hwirq;
pr_debug("rtas_msi: error (%d) getting hwirq\n", rc);
goto out_free;
return hwirq;
}

virq = irq_create_mapping(NULL, hwirq);

if (virq == NO_IRQ) {
pr_debug("rtas_msi: Failed mapping hwirq %d\n", hwirq);
rc = -ENOSPC;
goto out_free;
return -ENOSPC;
}

dev_dbg(&pdev->dev, "rtas_msi: allocated virq %d\n", virq);
Expand All @@ -220,10 +213,6 @@ static int rtas_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
}

return 0;

out_free:
rtas_teardown_msi_irqs(pdev);
return rc;
}

static void rtas_msi_pci_irq_fixup(struct pci_dev *pdev)
Expand Down

0 comments on commit 749704b

Please sign in to comment.