aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/port.c
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2011-05-04 21:22:33 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:46 -0400
commitd7b90fc3436fa6d5b5251eec3128386af1a4d7b8 (patch)
treecfaf1edede969b86d1b88a396eba97bde2432123 /drivers/scsi/isci/port.c
parentf700ad4331d55df729a36b2602c4abe2d855036f (diff)
isci: fixup SAS iaf protocols data structure
Moved the actual data structure that's read from the phy register to phy header. Removed the parsing of identify address frame protocol bits as that seemed not necessary and we can use existing information. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/port.c')
-rw-r--r--drivers/scsi/isci/port.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/isci/port.c b/drivers/scsi/isci/port.c
index 96a2002dadea..2decafbeb968 100644
--- a/drivers/scsi/isci/port.c
+++ b/drivers/scsi/isci/port.c
@@ -187,7 +187,7 @@ void isci_port_link_up(
187 187
188 scic_port_get_properties(port, &properties); 188 scic_port_get_properties(port, &properties);
189 189
190 if (properties.remote.protocols.u.bits.stp_target) { 190 if (phy->protocol == SCIC_SDS_PHY_PROTOCOL_SATA) {
191 u64 attached_sas_address; 191 u64 attached_sas_address;
192 192
193 isci_phy->sas_phy.oob_mode = SATA_OOB_MODE; 193 isci_phy->sas_phy.oob_mode = SATA_OOB_MODE;
@@ -207,9 +207,7 @@ void isci_port_link_up(
207 207
208 memcpy(&isci_phy->sas_phy.attached_sas_addr, 208 memcpy(&isci_phy->sas_phy.attached_sas_addr,
209 &attached_sas_address, sizeof(attached_sas_address)); 209 &attached_sas_address, sizeof(attached_sas_address));
210 210 } else if (phy->protocol == SCIC_SDS_PHY_PROTOCOL_SAS) {
211 } else if (properties.remote.protocols.u.bits.ssp_target ||
212 properties.remote.protocols.u.bits.smp_target) {
213 isci_phy->sas_phy.oob_mode = SAS_OOB_MODE; 211 isci_phy->sas_phy.oob_mode = SAS_OOB_MODE;
214 isci_phy->sas_phy.frame_rcvd_size = sizeof(struct sas_identify_frame); 212 isci_phy->sas_phy.frame_rcvd_size = sizeof(struct sas_identify_frame);
215 213