diff options
author | Jeff Skirvin <jeffrey.d.skirvin@intel.com> | 2012-03-09 01:42:06 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2012-05-17 17:33:42 -0400 |
commit | 28de92bef0fb0c3953aa73d31a961422ef900e6a (patch) | |
tree | c428479eb9257fc08f2cb968d2f1377a312c803e /drivers/scsi | |
parent | 1db79b3e784bffe7e00f9462a5c3441746e48632 (diff) |
isci: Add protocol indicator for TMF requests.
Requests contructed as task management requests need to have the protocol
indicator set so the completion decode can observe any RNC suspension
conditions.
Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/isci/request.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index 432585b04dc2..415d5f55d1c6 100644 --- a/drivers/scsi/isci/request.c +++ b/drivers/scsi/isci/request.c | |||
@@ -3130,6 +3130,12 @@ enum sci_status sci_task_request_construct(struct isci_host *ihost, | |||
3130 | if (dev->dev_type == SAS_END_DEV || dev_is_sata(dev)) { | 3130 | if (dev->dev_type == SAS_END_DEV || dev_is_sata(dev)) { |
3131 | set_bit(IREQ_TMF, &ireq->flags); | 3131 | set_bit(IREQ_TMF, &ireq->flags); |
3132 | memset(ireq->tc, 0, sizeof(struct scu_task_context)); | 3132 | memset(ireq->tc, 0, sizeof(struct scu_task_context)); |
3133 | |||
3134 | /* Set the protocol indicator. */ | ||
3135 | if (dev_is_sata(dev)) | ||
3136 | ireq->protocol = SAS_PROTOCOL_STP; | ||
3137 | else | ||
3138 | ireq->protocol = SAS_PROTOCOL_SSP; | ||
3133 | } else | 3139 | } else |
3134 | status = SCI_FAILURE_UNSUPPORTED_PROTOCOL; | 3140 | status = SCI_FAILURE_UNSUPPORTED_PROTOCOL; |
3135 | 3141 | ||