summaryrefslogtreecommitdiff
path: root/drivers/scsi/isci/remote_node_context.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-04-26 01:29:29 +0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 15:00:38 +0400
commit00d680ef84570bc7aea023772d27e85b0052004c (patch)
tree9fe3aacd53e3e353e0fe7bfbebfdd458bc9025f5 /drivers/scsi/isci/remote_node_context.c
parenta1a113b0a1ea437daf099b44f8a39e93a02a3f47 (diff)
downloadlinux-00d680ef84570bc7aea023772d27e85b0052004c.tar.xz
isci: kill smp_discover_response
An lldd need never look at the contents of an smp_discover_response frame. Kill the remaining locations where isci is looking at it: 1/ covering for expanders that do not set the stp_attached bit (already handled by sas_ex_discover_end_dev) 2/ an overkill method to notifiy the rest of the driver about remote_device sas addresses Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_node_context.c')
-rw-r--r--drivers/scsi/isci/remote_node_context.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/isci/remote_node_context.c b/drivers/scsi/isci/remote_node_context.c
index 285232fd5e63..59f878f11f33 100644
--- a/drivers/scsi/isci/remote_node_context.c
+++ b/drivers/scsi/isci/remote_node_context.c
@@ -124,8 +124,9 @@ static void scic_sds_remote_node_context_construct_buffer(
rnc->ssp.logical_port_index =
scic_sds_remote_device_get_port_index(sci_dev);
- rnc->ssp.remote_sas_address_hi = SCIC_SWAP_DWORD(sci_dev->device_address.high);
- rnc->ssp.remote_sas_address_lo = SCIC_SWAP_DWORD(sci_dev->device_address.low);
+ /* address is always big endian, destination is always little */
+ rnc->ssp.remote_sas_address_hi = swab32(sci_dev->device_address.high);
+ rnc->ssp.remote_sas_address_lo = swab32(sci_dev->device_address.low);
rnc->ssp.nexus_loss_timer_enable = true;
rnc->ssp.check_bit = false;