]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libsas: fix false positive 'device attached' conditions
authorDan Williams <dan.j.williams@intel.com>
Tue, 20 Mar 2012 17:50:27 +0000 (10:50 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 11 Apr 2012 02:15:23 +0000 (19:15 -0700)
commit55c53f6aed389e9e789df8d8e65d728ac125dba1
tree127faf27fb31f4d6f0700af52bd16563f1a36085
parentfcc1ce20ffbc553b25b6c635f4bb838940f58d2d
libsas: fix false positive 'device attached' conditions

Normalize phy->attached_sas_addr to return a zero-address in the case
when device-type == NO_DEVICE or the linkrate is invalid to handle
expanders that put non-zero sas addresses in the discovery response:

 sas: ex 5001b4da000f903f phy02:U:0 attached: 0100000000000000 (no device)
 sas: ex 5001b4da000f903f phy01:U:0 attached: 0100000000000000 (no device)
 sas: ex 5001b4da000f903f phy03:U:0 attached: 0100000000000000 (no device)
 sas: ex 5001b4da000f903f phy00:U:0 attached: 0100000000000000 (no device)

Reported-by: Andrzej Jakowski <andrzej.jakowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/libsas/sas_expander.c