aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_intr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_intr.c')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_intr.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_intr.c b/drivers/infiniband/hw/ipath/ipath_intr.c
index b58d35e85b53..54b3dbc8195a 100644
--- a/drivers/infiniband/hw/ipath/ipath_intr.c
+++ b/drivers/infiniband/hw/ipath/ipath_intr.c
@@ -480,10 +480,10 @@ static int handle_errors(struct ipath_devdata *dd, ipath_err_t errs)
480 dd->ipath_f_handle_hwerrors(dd, msg, sizeof msg); 480 dd->ipath_f_handle_hwerrors(dd, msg, sizeof msg);
481 } 481 }
482 482
483 if (!noprint && (errs & ~infinipath_e_bitsextant)) 483 if (!noprint && (errs & ~dd->ipath_e_bitsextant))
484 ipath_dev_err(dd, "error interrupt with unknown errors " 484 ipath_dev_err(dd, "error interrupt with unknown errors "
485 "%llx set\n", (unsigned long long) 485 "%llx set\n", (unsigned long long)
486 (errs & ~infinipath_e_bitsextant)); 486 (errs & ~dd->ipath_e_bitsextant));
487 487
488 if (errs & E_SUM_ERRS) 488 if (errs & E_SUM_ERRS)
489 ignore_this_time = handle_e_sum_errs(dd, errs); 489 ignore_this_time = handle_e_sum_errs(dd, errs);
@@ -805,9 +805,9 @@ static void handle_urcv(struct ipath_devdata *dd, u32 istat)
805 int rcvdint = 0; 805 int rcvdint = 0;
806 806
807 portr = ((istat >> INFINIPATH_I_RCVAVAIL_SHIFT) & 807 portr = ((istat >> INFINIPATH_I_RCVAVAIL_SHIFT) &
808 infinipath_i_rcvavail_mask) 808 dd->ipath_i_rcvavail_mask)
809 | ((istat >> INFINIPATH_I_RCVURG_SHIFT) & 809 | ((istat >> INFINIPATH_I_RCVURG_SHIFT) &
810 infinipath_i_rcvurg_mask); 810 dd->ipath_i_rcvurg_mask);
811 for (i = 1; i < dd->ipath_cfgports; i++) { 811 for (i = 1; i < dd->ipath_cfgports; i++) {
812 struct ipath_portdata *pd = dd->ipath_pd[i]; 812 struct ipath_portdata *pd = dd->ipath_pd[i];
813 if (portr & (1 << i) && pd && pd->port_cnt && 813 if (portr & (1 << i) && pd && pd->port_cnt &&
@@ -914,10 +914,10 @@ irqreturn_t ipath_intr(int irq, void *data, struct pt_regs *regs)
914 if (unexpected) 914 if (unexpected)
915 unexpected = 0; 915 unexpected = 0;
916 916
917 if (unlikely(istat & ~infinipath_i_bitsextant)) 917 if (unlikely(istat & ~dd->ipath_i_bitsextant))
918 ipath_dev_err(dd, 918 ipath_dev_err(dd,
919 "interrupt with unknown interrupts %x set\n", 919 "interrupt with unknown interrupts %x set\n",
920 istat & (u32) ~ infinipath_i_bitsextant); 920 istat & (u32) ~ dd->ipath_i_bitsextant);
921 else 921 else
922 ipath_cdbg(VERBOSE, "intr stat=0x%x\n", istat); 922 ipath_cdbg(VERBOSE, "intr stat=0x%x\n", istat);
923 923
@@ -1041,9 +1041,9 @@ irqreturn_t ipath_intr(int irq, void *data, struct pt_regs *regs)
1041 istat &= ~port0rbits; 1041 istat &= ~port0rbits;
1042 } 1042 }
1043 1043
1044 if (istat & ((infinipath_i_rcvavail_mask << 1044 if (istat & ((dd->ipath_i_rcvavail_mask <<
1045 INFINIPATH_I_RCVAVAIL_SHIFT) 1045 INFINIPATH_I_RCVAVAIL_SHIFT)
1046 | (infinipath_i_rcvurg_mask << 1046 | (dd->ipath_i_rcvurg_mask <<
1047 INFINIPATH_I_RCVURG_SHIFT))) 1047 INFINIPATH_I_RCVURG_SHIFT)))
1048 handle_urcv(dd, istat); 1048 handle_urcv(dd, istat);
1049 1049