diff options
author | James Bottomley <James.Bottomley@steeleye.com> | 2006-09-06 18:36:13 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-07 13:41:16 -0400 |
commit | 88edf74610bd894b93438f389688bc8b4a2d3414 (patch) | |
tree | 5f22ad465f07a8eda5576185db2e24ac7797d68a /drivers/scsi/aic94xx/aic94xx_init.c | |
parent | b4620233d6a3510564c561a5a2a365a1d8a34b68 (diff) |
[SCSI] SAS: consolidate linkspeed definitions
At the moment we have two separate linkspeed enumerations covering
roughly the same values. This patch consolidates on a single one enum
sas_linkspeed in scsi_transport_sas.h and uses it everywhere in the
aic94xx driver. Eventually I'll get around to removing the duplicated
fields in asd_sas_phy and sas_phy ...
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic94xx/aic94xx_init.c')
-rw-r--r-- | drivers/scsi/aic94xx/aic94xx_init.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_init.c b/drivers/scsi/aic94xx/aic94xx_init.c index 69aa70887530..302b54fddf3c 100644 --- a/drivers/scsi/aic94xx/aic94xx_init.c +++ b/drivers/scsi/aic94xx/aic94xx_init.c | |||
@@ -240,10 +240,14 @@ static int __devinit asd_common_setup(struct asd_ha_struct *asd_ha) | |||
240 | /* All phys are enabled, by default. */ | 240 | /* All phys are enabled, by default. */ |
241 | asd_ha->hw_prof.enabled_phys = 0xFF; | 241 | asd_ha->hw_prof.enabled_phys = 0xFF; |
242 | for (i = 0; i < ASD_MAX_PHYS; i++) { | 242 | for (i = 0; i < ASD_MAX_PHYS; i++) { |
243 | asd_ha->hw_prof.phy_desc[i].max_sas_lrate = PHY_LINKRATE_3; | 243 | asd_ha->hw_prof.phy_desc[i].max_sas_lrate = |
244 | asd_ha->hw_prof.phy_desc[i].min_sas_lrate = PHY_LINKRATE_1_5; | 244 | SAS_LINK_RATE_3_0_GBPS; |
245 | asd_ha->hw_prof.phy_desc[i].max_sata_lrate= PHY_LINKRATE_1_5; | 245 | asd_ha->hw_prof.phy_desc[i].min_sas_lrate = |
246 | asd_ha->hw_prof.phy_desc[i].min_sata_lrate= PHY_LINKRATE_1_5; | 246 | SAS_LINK_RATE_1_5_GBPS; |
247 | asd_ha->hw_prof.phy_desc[i].max_sata_lrate = | ||
248 | SAS_LINK_RATE_1_5_GBPS; | ||
249 | asd_ha->hw_prof.phy_desc[i].min_sata_lrate = | ||
250 | SAS_LINK_RATE_1_5_GBPS; | ||
247 | } | 251 | } |
248 | 252 | ||
249 | return 0; | 253 | return 0; |