diff options
author | Dan Williams <dan.j.williams@intel.com> | 2012-02-01 03:44:14 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2012-05-17 15:27:11 -0400 |
commit | c79dd80d73017a88a2c2ae46e7d5303cba6a32e0 (patch) | |
tree | 4bf1f09df72921272e38bc0c9610374d4c1873e2 /drivers/scsi/isci/request.c | |
parent | 11cc51835af0e6fbb2da9cb012bdaaa036497b7f (diff) |
isci: kill sci_phy_protocol and sci_request_protocol
Holdovers from the initial driver cleanup, replace with enum sas_protocol.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/request.c')
-rw-r--r-- | drivers/scsi/isci/request.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index 01844ef19656..835ede848871 100644 --- a/drivers/scsi/isci/request.c +++ b/drivers/scsi/isci/request.c | |||
@@ -730,7 +730,7 @@ static enum sci_status sci_io_request_construct_basic_ssp(struct isci_request *i | |||
730 | { | 730 | { |
731 | struct sas_task *task = isci_request_access_task(ireq); | 731 | struct sas_task *task = isci_request_access_task(ireq); |
732 | 732 | ||
733 | ireq->protocol = SCIC_SSP_PROTOCOL; | 733 | ireq->protocol = SAS_PROTOCOL_SSP; |
734 | 734 | ||
735 | scu_ssp_io_request_construct_task_context(ireq, | 735 | scu_ssp_io_request_construct_task_context(ireq, |
736 | task->data_dir, | 736 | task->data_dir, |
@@ -763,7 +763,7 @@ static enum sci_status sci_io_request_construct_basic_sata(struct isci_request * | |||
763 | bool copy = false; | 763 | bool copy = false; |
764 | struct sas_task *task = isci_request_access_task(ireq); | 764 | struct sas_task *task = isci_request_access_task(ireq); |
765 | 765 | ||
766 | ireq->protocol = SCIC_STP_PROTOCOL; | 766 | ireq->protocol = SAS_PROTOCOL_STP; |
767 | 767 | ||
768 | copy = (task->data_dir == DMA_NONE) ? false : true; | 768 | copy = (task->data_dir == DMA_NONE) ? false : true; |
769 | 769 | ||
@@ -1070,7 +1070,7 @@ request_started_state_tc_event(struct isci_request *ireq, | |||
1070 | case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_UNEXP_SDBFIS): | 1070 | case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_UNEXP_SDBFIS): |
1071 | case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_REG_ERR): | 1071 | case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_REG_ERR): |
1072 | case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_SDB_ERR): | 1072 | case SCU_MAKE_COMPLETION_STATUS(SCU_TASK_DONE_SDB_ERR): |
1073 | if (ireq->protocol == SCIC_STP_PROTOCOL) { | 1073 | if (ireq->protocol == SAS_PROTOCOL_STP) { |
1074 | ireq->scu_status = SCU_GET_COMPLETION_TL_STATUS(completion_code) >> | 1074 | ireq->scu_status = SCU_GET_COMPLETION_TL_STATUS(completion_code) >> |
1075 | SCU_COMPLETION_TL_STATUS_SHIFT; | 1075 | SCU_COMPLETION_TL_STATUS_SHIFT; |
1076 | ireq->sci_status = SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED; | 1076 | ireq->sci_status = SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED; |
@@ -3169,7 +3169,7 @@ sci_general_request_construct(struct isci_host *ihost, | |||
3169 | sci_init_sm(&ireq->sm, sci_request_state_table, SCI_REQ_INIT); | 3169 | sci_init_sm(&ireq->sm, sci_request_state_table, SCI_REQ_INIT); |
3170 | 3170 | ||
3171 | ireq->target_device = idev; | 3171 | ireq->target_device = idev; |
3172 | ireq->protocol = SCIC_NO_PROTOCOL; | 3172 | ireq->protocol = SAS_PROTOCOL_NONE; |
3173 | ireq->saved_rx_frame_index = SCU_INVALID_FRAME_INDEX; | 3173 | ireq->saved_rx_frame_index = SCU_INVALID_FRAME_INDEX; |
3174 | 3174 | ||
3175 | ireq->sci_status = SCI_SUCCESS; | 3175 | ireq->sci_status = SCI_SUCCESS; |
@@ -3310,7 +3310,7 @@ sci_io_request_construct_smp(struct device *dev, | |||
3310 | if (!dma_map_sg(dev, sg, 1, DMA_TO_DEVICE)) | 3310 | if (!dma_map_sg(dev, sg, 1, DMA_TO_DEVICE)) |
3311 | return SCI_FAILURE; | 3311 | return SCI_FAILURE; |
3312 | 3312 | ||
3313 | ireq->protocol = SCIC_SMP_PROTOCOL; | 3313 | ireq->protocol = SAS_PROTOCOL_SMP; |
3314 | 3314 | ||
3315 | /* byte swap the smp request. */ | 3315 | /* byte swap the smp request. */ |
3316 | 3316 | ||