From patchwork Thu Aug 10 16:09:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 109833 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp2567458obb; Thu, 10 Aug 2017 08:48:50 -0700 (PDT) X-Received: by 10.84.134.129 with SMTP id 1mr14060538plh.449.1502380130816; Thu, 10 Aug 2017 08:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502380130; cv=none; d=google.com; s=arc-20160816; b=XUtv6WdYKlwgxfbLxQgURsnLyVCBmOWoBkXbupKdFf7mtynWaSnqAEn3sbPEhjvtun y8a6VYAguSzpjEmZ2OQsVUtBwORPIWOPjTb+dP3MpZwkh8t4zurbUyGoqT2y082MjGXI 96HhpM7ItkpqM1YXyD6vxtDO9EGJToTnH5HQxjULi5h792SvzLzmrNLBJR6FKq3Jufth 0ZJtw8OQYgQQ6mrKjeLclKmz+PC7441E6FExeWw+xs+8IBwEaVaobUH/tfg8A5KLHzSB mtmrmnCdbwnOJ9tc+f7uuAtE3T2OVM6fWLY7EW7rdptMc/t1ic2g+RbGNOm6WROqvSiX vXmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=jzy7hbE3fMaFpMp7ij9vh19FQYSsKxS1afuo8Tao5lo=; b=quVa7xVoQg9m+RYhsc7wM+KQCnnKcI0xMCJEt1TkomgABLrFOaLhKNajySRPCpUCLH lQfG6ewbacBvy6pjeKKwY9W0JbPIhUU83KypP0V1yPaEg1Jzcnb/zKDqg1DEpu26iRs9 AXoAvjv1NiEU/sqOwjpaXw0F8Lvj7I++BYzTSxw9ljxXN2+vIiJ7DIFX2URQ+yZzoxmX 6ngeBDbjGDO0QqjTUvicMJacLo9ZGlUVWThjddJInueMaHIRKBUlSRamvzQI05rOe3rC ho6+NESnnRo//JVHbVJEfhkoERn/0MWTsImqfuWhfegtQM+GQ62azwUoOaZBObrzErYC eMZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s63si4048135pgs.142.2017.08.10.08.48.50; Thu, 10 Aug 2017 08:48:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753117AbdHJPsd (ORCPT + 25 others); Thu, 10 Aug 2017 11:48:33 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3055 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752903AbdHJPmv (ORCPT ); Thu, 10 Aug 2017 11:42:51 -0400 Received: from 172.30.72.59 (EHLO DGGEMS402-HUB.china.huawei.com) ([172.30.72.59]) by dggrg05-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DEY38531; Thu, 10 Aug 2017 23:42:48 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.301.0; Thu, 10 Aug 2017 23:42:38 +0800 From: John Garry To: , CC: , , , , Xiaofei Tan , John Garry Subject: [PATCH 09/19] scsi: hisi_sas: support zone management commands Date: Fri, 11 Aug 2017 00:09:34 +0800 Message-ID: <1502381384-219889-10-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502381384-219889-1-git-send-email-john.garry@huawei.com> References: <1502381384-219889-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090206.598C7EF8.00FD, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: a8e9b40b1ee7e7a57beffc76648c7c75 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiaofei Tan Add two ATA commands, ATA_CMD_ZAC_MGMT_IN and ATA_CMD_ZAC_MGMT_OUT in hisi_sas_get_ata_protocol(), to support SATA SMR disk. Signed-off-by: Xiaofei Tan Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c index 81ad6cd..86868ec 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_main.c +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c @@ -61,6 +61,7 @@ u8 hisi_sas_get_ata_protocol(u8 cmd, int direction) case ATA_CMD_WRITE_QUEUED: case ATA_CMD_WRITE_LOG_DMA_EXT: case ATA_CMD_WRITE_STREAM_DMA_EXT: + case ATA_CMD_ZAC_MGMT_IN: return HISI_SAS_SATA_PROTOCOL_DMA; case ATA_CMD_CHK_POWER: @@ -73,6 +74,7 @@ u8 hisi_sas_get_ata_protocol(u8 cmd, int direction) case ATA_CMD_SET_FEATURES: case ATA_CMD_STANDBY: case ATA_CMD_STANDBYNOW1: + case ATA_CMD_ZAC_MGMT_OUT: return HISI_SAS_SATA_PROTOCOL_NONDATA; default: if (direction == DMA_NONE)