Skip to content

Commit

Permalink
isci: Add protocol indicator for TMF requests.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Skirvin authored and Dan Williams committed May 17, 2012
1 parent 1db79b3 commit 28de92b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/scsi/isci/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -3130,6 +3130,12 @@ enum sci_status sci_task_request_construct(struct isci_host *ihost,
if (dev->dev_type == SAS_END_DEV || dev_is_sata(dev)) {
set_bit(IREQ_TMF, &ireq->flags);
memset(ireq->tc, 0, sizeof(struct scu_task_context));

/* Set the protocol indicator. */
if (dev_is_sata(dev))
ireq->protocol = SAS_PROTOCOL_STP;
else
ireq->protocol = SAS_PROTOCOL_SSP;
} else
status = SCI_FAILURE_UNSUPPORTED_PROTOCOL;

Expand Down

0 comments on commit 28de92b

Please sign in to comment.