summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/qib/qib_init.c
diff options
context:
space:
mode:
authorMitko Haralanov <mitko@qlogic.com>2011-10-20 02:46:40 +0400
committerRoland Dreier <roland@purestorage.com>2011-10-22 02:08:20 +0400
commitdde05cbdf8b1c404344c370fe6e18ff160d6da6a (patch)
tree6c480da3c7e8e41ad6b24a51eaa27caeb6ea22b2 /drivers/infiniband/hw/qib/qib_init.c
parent44d75d3d92304a1df8131f48b38de08df9011fa2 (diff)
downloadlinux-dde05cbdf8b1c404344c370fe6e18ff160d6da6a.tar.xz
IB/qib: Hold links until tuning data is available
Hold the link state machine until the tuning data is read from the QSFP EEPROM so correct tuning settings are applied before the state machine attempts to bring the link up. Link is also held on cable unplug in case a different cable is used. Signed-off-by: Mitko Haralanov <mitko@qlogic.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_init.c')
-rw-r--r--drivers/infiniband/hw/qib/qib_init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c
index 21ffa7c0915f..b093a0b53b2f 100644
--- a/drivers/infiniband/hw/qib/qib_init.c
+++ b/drivers/infiniband/hw/qib/qib_init.c
@@ -585,10 +585,6 @@ int qib_init(struct qib_devdata *dd, int reinit)
continue;
}
- /* let link come up, and enable IBC */
- spin_lock_irqsave(&ppd->lflags_lock, flags);
- ppd->lflags &= ~QIBL_IB_LINK_DISABLED;
- spin_unlock_irqrestore(&ppd->lflags_lock, flags);
portok++;
}