Dan Williams 7d1d865181 [SCSI] 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>
Cc: stable@vger.kernel.org
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2012-04-23 12:14:09 +01:00
..
2012-03-08 10:50:35 -08:00
2012-04-16 18:34:12 -07:00
2012-04-12 15:36:33 -07:00
2012-03-19 09:37:11 +00:00
2012-03-27 16:03:32 -07:00
2012-04-10 15:30:16 -07:00
2012-04-12 15:36:33 -07:00
2012-03-28 13:56:35 -07:00
2012-03-17 01:41:43 -07:00
2012-03-30 00:09:17 -07:00
2012-04-12 15:35:12 -07:00
2012-04-12 15:36:33 -07:00
2012-03-29 18:02:10 -07:00
2012-04-06 17:54:53 -07:00