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
..
2011-03-31 11:26:23 -03:00
2012-03-28 15:58:21 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2011-07-26 16:49:47 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-03-31 13:31:23 -07:00
2011-09-26 09:28:58 -05:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-12-22 18:57:02 +01:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2012-03-31 13:31:23 -07:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2011-05-01 10:22:40 -05:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2012-02-19 08:08:55 -06:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-03-28 15:09:28 +01:00
2011-03-31 11:26:23 -03:00
2012-01-02 13:04:55 +01:00
2012-03-31 13:31:23 -07:00
2012-03-22 12:55:29 -07:00
2012-01-22 14:50:03 +01:00
2012-03-31 13:31:23 -07:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-05-02 15:55:03 -04:00
2011-08-27 08:36:58 -06:00
2011-08-27 08:36:58 -06:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2012-02-21 11:40:37 +01:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2012-03-31 13:31:23 -07:00
2012-03-12 09:13:31 -07:00
2012-01-03 22:54:07 -05:00
2012-03-31 13:31:23 -07:00
2012-01-02 13:04:55 +01:00
2012-03-31 13:31:23 -07:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2012-03-28 18:30:03 +01:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00