From: Jeff Skirvin Date: Fri, 9 Mar 2012 06:42:06 +0000 (-0800) Subject: isci: Add protocol indicator for TMF requests. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28de92bef0fb0c3953aa73d31a961422ef900e6a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Dan Williams --- 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, 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;