]> Pileus Git - ~andy/linux/commit
isci: fix 'link-up' events occur after 'start-complete'
authorDan Williams <dan.j.williams@intel.com>
Wed, 29 Feb 2012 09:07:56 +0000 (01:07 -0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 17 May 2012 19:27:12 +0000 (12:27 -0700)
commit50a92d93148ec073efd2456b007e04ecae452086
tree1a81ac87e301bdb7bd809daea52bd7be0b3b21b4
parenteb608c3cb3f0a6b99252ea6a69fc0d2bbecf1f4f
isci: fix 'link-up' events occur after 'start-complete'

The call to wait_for_start() is meant to ensure that all links have been
given a chance to come up before letting the kernel proceed with
probing.  However, the implementation is not correctly syncing with the
port configuration agent.  In the MPC case the ports are hard-coded, in
the APC case we need to wait for the port-configuration to form ports
from the started phys.

Towards that end increase the timeout for the APC agent to form ports,
and delay start complete until all phys are out of link-training.

Cc: <stable@vger.kernel.org>
Cc: Richard Boyd <richard.g.boyd@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/host.c
drivers/scsi/isci/host.h
drivers/scsi/isci/port_config.c