IB/qib: Fix over-scheduling of QSFP work
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>
Wed, 9 Nov 2011 22:07:22 +0000 (17:07 -0500)
committerRoland Dreier <roland@purestorage.com>
Mon, 28 Nov 2011 20:17:33 +0000 (12:17 -0800)
commit8ee887d74b3d741991edaa1836d22636c28926d9
tree868723496669854e18779c4af3dfcee6575dd517
parent042f36e1560cedfe524607791fa44607a3121f63
IB/qib: Fix over-scheduling of QSFP work

Don't over-schedule QSFP work on driver initialization.  It could end
up being run simultaneously on two different CPUs resulting in bad
EEPROM reads.  In combination with setting the physical IB link state
prior to the IBC being brought out of reset, this can cause the link
state machine to start training early with wrong settings.

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>
drivers/infiniband/hw/qib/qib_iba7322.c
drivers/infiniband/hw/qib/qib_qsfp.c