Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 101584
b: refs/heads/master
c: 9d5f525
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Paul Mackerras committed May 14, 2008
1 parent acf522c commit 52e6596
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: ee1a08f963c5abb5ec2d8c5defffecee7c3f84c8
refs/heads/master: 9d5f525b86453da921360727112161254accc8c1
8 changes: 5 additions & 3 deletions trunk/arch/powerpc/sysdev/mpic_u3msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,19 @@ static int u3msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
struct msi_desc *entry;
struct msi_msg msg;
u64 addr;
int ret;

addr = find_ht_magic_addr(pdev);
msg.address_lo = addr & 0xFFFFFFFF;
msg.address_hi = addr >> 32;

list_for_each_entry(entry, &pdev->msi_list, list) {
hwirq = mpic_msi_alloc_hwirqs(msi_mpic, 1);
if (hwirq < 0) {
ret = mpic_msi_alloc_hwirqs(msi_mpic, 1);
if (ret < 0) {
pr_debug("u3msi: failed allocating hwirq\n");
return hwirq;
return ret;
}
hwirq = ret;

virq = irq_create_mapping(msi_mpic->irqhost, hwirq);
if (virq == NO_IRQ) {
Expand Down

0 comments on commit 52e6596

Please sign in to comment.