aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2006-08-25 14:48:18 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-08-27 23:30:11 -0400
commitf4ad7b5807385ad1fed0347d966e51a797cd1013 (patch)
tree7661a3f739cc6fc808175a482202885ee1c3ab48 /include
parent8ce7a9c159c8c4eb480f0a65c6af753dbf9a1a70 (diff)
[SCSI] scsi_transport_sas: remove local_attached flag
This flag denotes local attachment of the phy. There are two problems with it: 1) It's actually redundant ... you can get the same information simply by seeing whether a host is the phys parent 2) we condition a lot of phy parameters on it on the false assumption that we can only control local phys. I'm wiring up phy resets in the aic94xx now, and it will be able to reset non-local phys as well. I fixed 2) by moving the local check into the reset and stats function of the mptsas, since that seems to be the only HBA that can't (currently) control non-local phys. Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include')
-rw-r--r--include/scsi/scsi_transport_sas.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/scsi/scsi_transport_sas.h b/include/scsi/scsi_transport_sas.h
index 6cc2314098cf..eeb2200de855 100644
--- a/include/scsi/scsi_transport_sas.h
+++ b/include/scsi/scsi_transport_sas.h
@@ -57,9 +57,6 @@ struct sas_phy {
57 enum sas_linkrate maximum_linkrate_hw; 57 enum sas_linkrate maximum_linkrate_hw;
58 enum sas_linkrate maximum_linkrate; 58 enum sas_linkrate maximum_linkrate;
59 59
60 /* internal state */
61 unsigned int local_attached : 1;
62
63 /* link error statistics */ 60 /* link error statistics */
64 u32 invalid_dword_count; 61 u32 invalid_dword_count;
65 u32 running_disparity_error_count; 62 u32 running_disparity_error_count;
@@ -196,4 +193,6 @@ scsi_is_sas_expander_device(struct device *dev)
196 rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE; 193 rphy->identify.device_type == SAS_EDGE_EXPANDER_DEVICE;
197} 194}
198 195
196#define scsi_is_sas_phy_local(phy) scsi_is_host_device((phy)->dev.parent)
197
199#endif /* SCSI_TRANSPORT_SAS_H */ 198#endif /* SCSI_TRANSPORT_SAS_H */