diff options
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_iba7322.c')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_iba7322.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/infiniband/hw/qib/qib_iba7322.c b/drivers/infiniband/hw/qib/qib_iba7322.c index c881e744c091..78e85503c509 100644 --- a/drivers/infiniband/hw/qib/qib_iba7322.c +++ b/drivers/infiniband/hw/qib/qib_iba7322.c | |||
@@ -1,5 +1,6 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2008, 2009, 2010 QLogic Corporation. All rights reserved. | 2 | * Copyright (c) 2012 Intel Corporation. All rights reserved. |
3 | * Copyright (c) 2008 - 2012 QLogic Corporation. All rights reserved. | ||
3 | * | 4 | * |
4 | * This software is available to you under a choice of one of two | 5 | * This software is available to you under a choice of one of two |
5 | * licenses. You may choose to be licensed under the terms of the GNU | 6 | * licenses. You may choose to be licensed under the terms of the GNU |
@@ -49,6 +50,7 @@ | |||
49 | #include "qib_qsfp.h" | 50 | #include "qib_qsfp.h" |
50 | 51 | ||
51 | #include "qib_mad.h" | 52 | #include "qib_mad.h" |
53 | #include "qib_verbs.h" | ||
52 | 54 | ||
53 | static void qib_setup_7322_setextled(struct qib_pportdata *, u32); | 55 | static void qib_setup_7322_setextled(struct qib_pportdata *, u32); |
54 | static void qib_7322_handle_hwerrors(struct qib_devdata *, char *, size_t); | 56 | static void qib_7322_handle_hwerrors(struct qib_devdata *, char *, size_t); |
@@ -5151,15 +5153,11 @@ static void try_7322_ipg(struct qib_pportdata *ppd) | |||
5151 | goto retry; | 5153 | goto retry; |
5152 | 5154 | ||
5153 | if (!ibp->smi_ah) { | 5155 | if (!ibp->smi_ah) { |
5154 | struct ib_ah_attr attr; | ||
5155 | struct ib_ah *ah; | 5156 | struct ib_ah *ah; |
5156 | 5157 | ||
5157 | memset(&attr, 0, sizeof attr); | 5158 | ah = qib_create_qp0_ah(ibp, be16_to_cpu(IB_LID_PERMISSIVE)); |
5158 | attr.dlid = be16_to_cpu(IB_LID_PERMISSIVE); | ||
5159 | attr.port_num = ppd->port; | ||
5160 | ah = ib_create_ah(ibp->qp0->ibqp.pd, &attr); | ||
5161 | if (IS_ERR(ah)) | 5159 | if (IS_ERR(ah)) |
5162 | ret = -EINVAL; | 5160 | ret = PTR_ERR(ah); |
5163 | else { | 5161 | else { |
5164 | send_buf->ah = ah; | 5162 | send_buf->ah = ah; |
5165 | ibp->smi_ah = to_iah(ah); | 5163 | ibp->smi_ah = to_iah(ah); |