]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Fri, 13 Apr 2012 07:13:14 +0000 (00:13 -0700)
commitd62c11abd45bc3ccd042443a04c893e19f6f1911
tree5d3db4ea5379b3ee9c371bcab97546ab6781c2b3
parent9cd4aa6ee1454797e7495afa41391093c0e4937b
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