diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2005-09-26 12:29:33 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-26 12:38:34 -0400 |
commit | f7ed3a5971da98acdc506bdbdef25cfe51c334a2 (patch) | |
tree | 1e2cff00ff81b1a20be326d5b58e672846663102 /drivers | |
parent | 018771f435388f22f388eb8658c652086fb3633e (diff) |
[IB] mthca: fix off by one in clr_int calculation
We should use the first word of the clear interrupt register if
the bit we're after is < 32, not < 31.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_eq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_eq.c b/drivers/infiniband/hw/mthca/mthca_eq.c index 78152a8ad17d..c81fa8e975ef 100644 --- a/drivers/infiniband/hw/mthca/mthca_eq.c +++ b/drivers/infiniband/hw/mthca/mthca_eq.c | |||
@@ -836,7 +836,7 @@ int __devinit mthca_init_eq_table(struct mthca_dev *dev) | |||
836 | dev->eq_table.clr_mask = | 836 | dev->eq_table.clr_mask = |
837 | swab32(1 << (dev->eq_table.inta_pin & 31)); | 837 | swab32(1 << (dev->eq_table.inta_pin & 31)); |
838 | dev->eq_table.clr_int = dev->clr_base + | 838 | dev->eq_table.clr_int = dev->clr_base + |
839 | (dev->eq_table.inta_pin < 31 ? 4 : 0); | 839 | (dev->eq_table.inta_pin < 32 ? 4 : 0); |
840 | } | 840 | } |
841 | 841 | ||
842 | dev->eq_table.arm_mask = 0; | 842 | dev->eq_table.arm_mask = 0; |