Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 199634
b: refs/heads/master
c: 061ca4a
h: refs/heads/master
v: v3
  • Loading branch information
Li Yang authored and Kumar Gala committed May 25, 2010
1 parent 33da624 commit bb43d73
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 694a7a3611a1c0e28d99b4955151c6ce68e89752
refs/heads/master: 061ca4adfb2e3c986a182fd30f7e939a1ff8d29d
8 changes: 7 additions & 1 deletion trunk/arch/powerpc/sysdev/fsl_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ static int __devinit fsl_of_msi_probe(struct of_device *dev,
const u32 *p;
struct fsl_msi_feature *features = match->data;
struct fsl_msi_cascade_data *cascade_data = NULL;
int len;
u32 offset;

printk(KERN_DEBUG "Setting up Freescale MSI support\n");

Expand Down Expand Up @@ -320,6 +322,10 @@ static int __devinit fsl_of_msi_probe(struct of_device *dev,
err = -EINVAL;
goto error_out;
}
offset = 0;
p = of_get_property(dev->node, "msi-available-ranges", &len);
if (p)
offset = *p / IRQS_PER_MSI_REG;

count /= sizeof(u32);
for (i = 0; i < count / 2; i++) {
Expand All @@ -336,7 +342,7 @@ static int __devinit fsl_of_msi_probe(struct of_device *dev,
err = -ENOMEM;
goto error_out;
}
cascade_data->index = i;
cascade_data->index = i + offset;
cascade_data->msi_data = msi;
set_irq_data(virt_msir, (void *)cascade_data);
set_irq_chained_handler(virt_msir, fsl_msi_cascade);
Expand Down

0 comments on commit bb43d73

Please sign in to comment.