]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:46 +0000 (13:14 +0100)
commitaa60a4b796e450c561fb070cbd23c4650896cb67
tree7b4390f5b00ec99952542943d0f063e27c33c13a
parent586e76ea0975340dd826e36522ac162e83d90962
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: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/libsas/sas_expander.c