Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91801
b: refs/heads/master
c: 4495757
h: refs/heads/master
i:
  91799: 0ad0644
v: v3
  • Loading branch information
Roland Dreier committed Apr 22, 2008
1 parent 40e330d commit 8276307
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: 480f58e6143135680fc1e61ea2dedc72cf3d1f95
refs/heads/master: 44957572cc198f6fcee9569813722b9ae1bd1679
13 changes: 4 additions & 9 deletions trunk/drivers/infiniband/hw/ipath/ipath_iba7220.c
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ static int ipath_msi_enabled(struct pci_dev *pdev)
static void ipath_7220_nomsi(struct ipath_devdata *dd)
{
dd->ipath_msi_lo = 0;
#ifdef CONFIG_PCI_MSI

if (ipath_msi_enabled(dd->pcidev)) {
/*
* free, but don't zero; later kernels require
Expand All @@ -1232,7 +1232,6 @@ static void ipath_7220_nomsi(struct ipath_devdata *dd)
free_irq(dd->ipath_irq, dd);
pci_disable_msi(dd->pcidev);
}
#endif
}

/*
Expand Down Expand Up @@ -1344,7 +1343,7 @@ static int ipath_setup_7220_config(struct ipath_devdata *dd,
u32 boardrev;

dd->ipath_msi_lo = 0; /* used as a flag during reset processing */
#ifdef CONFIG_PCI_MSI

pos = pci_find_capability(pdev, PCI_CAP_ID_MSI);
if (!strcmp(int_type, "force_msi") || !strcmp(int_type, "auto"))
ret = pci_enable_msi(pdev);
Expand Down Expand Up @@ -1377,10 +1376,6 @@ static int ipath_setup_7220_config(struct ipath_devdata *dd,
} else
ipath_dev_err(dd, "Can't find MSI capability, "
"can't save MSI settings for reset\n");
#else
ipath_dbg("PCI_MSI not configured, using IntX interrupts\n");
ipath_enable_intx(pdev);
#endif

dd->ipath_irq = pdev->irq;

Expand Down Expand Up @@ -1583,7 +1578,7 @@ static void ipath_init_7220_variables(struct ipath_devdata *dd)
static int ipath_reinit_msi(struct ipath_devdata *dd)
{
int ret = 0;
#ifdef CONFIG_PCI_MSI

int pos;
u16 control;
if (!dd->ipath_msi_lo) /* Using intX, or init problem */
Expand Down Expand Up @@ -1617,8 +1612,8 @@ static int ipath_reinit_msi(struct ipath_devdata *dd)
((control & PCI_MSI_FLAGS_64BIT) ? 12 : 8),
dd->ipath_msi_data);
ret = 1;

bail:
#endif
if (!ret) {
ipath_dbg("Using IntX, MSI disabled or not configured\n");
ipath_enable_intx(dd->pcidev);
Expand Down

0 comments on commit 8276307

Please sign in to comment.