]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCSI: libsas: fix sas_find_bcast_phy() in the presence of 'vacant' phys
authorThomas Jackson <thomas.p.jackson@intel.com>
Sat, 18 Feb 2012 02:33:10 +0000 (18:33 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:53:34 +0000 (08:53 -0700)
commit26d67f6fe3c2155b7964866740adccda245562a0
treed62992f0f8560bf31af8af8ef65c438b3d48e626
parentbe443a52b085a10b696e7abc26524e709839e8d1
SCSI: libsas: fix sas_find_bcast_phy() in the presence of 'vacant' phys

commit 1699490db339e2c6b3037ea8e7dcd6b2755b688e upstream.

If an expander reports 'PHY VACANT' for a phy index prior to the one
that generated a BCN libsas fails rediscovery.  Since a vacant phy is
defined as a valid phy index that will never have an attached device
just continue the search.

Signed-off-by: Thomas Jackson <thomas.p.jackson@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/libsas/sas_expander.c