aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/port.c
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2011-05-04 18:37:52 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:46 -0400
commit4b7ebd05fc074ac2ffdc803232d83f3593d4f548 (patch)
tree697af2c3f57dd5ce58f092d1806f35ce22c614ee /drivers/scsi/isci/port.c
parente76d6180da436edf2cc3538cbed1f5b02b614613 (diff)
isci: Convert SAS identify address frame to Linux Native format
Convert struct sci_sas_identify_address_frame to struct sas_identify_frame 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.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/scsi/isci/port.c b/drivers/scsi/isci/port.c
index 5b38f2f963e0..0a1577327d61 100644
--- a/drivers/scsi/isci/port.c
+++ b/drivers/scsi/isci/port.c
@@ -236,18 +236,12 @@ void isci_port_link_up(
236 236
237 BUG_ON(call_status != SCI_SUCCESS); 237 BUG_ON(call_status != SCI_SUCCESS);
238 238
239 memcpy(isci_phy->frame_rcvd.aif, 239 isci_phy->frame_rcvd.iaf = sas_phy_properties.rcvd_iaf;
240 &(sas_phy_properties.received_iaf), 240 isci_phy->sas_phy.frame_rcvd_size = sizeof(struct sas_identify_frame);
241 sizeof(struct sci_sas_identify_address_frame));
242
243 isci_phy->sas_phy.frame_rcvd_size
244 = sizeof(struct sci_sas_identify_address_frame);
245 241
246 /* Copy the attached SAS address from the IAF */ 242 /* Copy the attached SAS address from the IAF */
247 memcpy(isci_phy->sas_phy.attached_sas_addr, 243 memcpy(isci_phy->sas_phy.attached_sas_addr,
248 ((struct sas_identify_frame *) 244 isci_phy->frame_rcvd.iaf.sas_addr, SAS_ADDR_SIZE);
249 (&isci_phy->frame_rcvd.aif))->sas_addr,
250 SAS_ADDR_SIZE);
251 245
252 } else { 246 } else {
253 dev_err(&isci_host->pdev->dev, "%s: unkown target\n", __func__); 247 dev_err(&isci_host->pdev->dev, "%s: unkown target\n", __func__);