[SCSI] isci: fix io failures while wide port links are coming up
authorMarcin Tomczak <marcin.tomczak@intel.com>
Wed, 4 Jan 2012 09:33:31 +0000 (01:33 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 16 Jan 2012 07:46:59 +0000 (11:46 +0400)
commitbe778341812dc75b1c515fab6ebd39c0daf1e2bc
treef690ff71352d7b0447c7e97e3d1eee929115819c
parent472d4d2cfbc169f3868a5f63ce727a482a2fd487
[SCSI] isci: fix io failures while wide port links are coming up

When the first phy of a wide port comes up, don't report the port ready
yet, always wait for 250 miliseconds then config the port with all phys
added to the port. So that we can avoid reporting wide port device too
early to kernel, which caused the first IOs (report luns, inquirys)
failed due to not all the phys are configured into its port. Changes
also made that the phys in a wide port don't need to go through half
second wait time for consuming power.

Signed-off-by: Marcin Tomczak <marcin.tomczak@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/isci/host.c
drivers/scsi/isci/port_config.c