From patchwork Tue Jun 10 09:51:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 31611 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1698A2054B for ; Tue, 10 Jun 2014 09:52:54 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id i8sf5389091qcq.8 for ; Tue, 10 Jun 2014 02:52:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:sender:precedence :list-id:x-original-sender:x-original-authentication-results :mailing-list:list-post:list-help:list-archive:list-unsubscribe :content-type:content-transfer-encoding; bh=b12AUgYo8M31XEK/yUvgahwb3QgYMpsNVxb2i3oaw0E=; b=jedLz8mPnpLobEzZrnr6xEb5f/y00QMdzkjmrZSEe9z7CE5roflCQ5PzKINvebcJ9Q eY3EMcVYrYhesTWrFHv5aIikGoef+Y+i31EYHN+mF9hyJnz9tUtLttu/4TQ24ey/TEOT OZQL6zWNkp+Pw6v2z3DfLLWPb7ViP7rB7xqd6iiGQGJ7UBNfeaxAv2Y8IMUhD3e2w4yO MOH+QPgPMvmSKMpjkUQPS/UE7rpnZWAEJiHWl3vYJIGW+Xh8nb7e6RtyCDV8YoD4EMAl eNeuOrVvOuJsXfP9MzytAOGWo5DPg/i5uf8CYwL/N4bXxET3iBGqW4MgmSfP9sUSCpvk y5Tg== X-Gm-Message-State: ALoCoQlAHAIun2YmTl+ftRO7DI9/761PlOKECxmcUAa9xindJrGcNalywNrHIXpyO9EgTbRuVoRt X-Received: by 10.58.225.225 with SMTP id rn1mr4882681vec.5.1402393973917; Tue, 10 Jun 2014 02:52:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.109.247 with SMTP id l110ls1954892qgf.90.gmail; Tue, 10 Jun 2014 02:52:53 -0700 (PDT) X-Received: by 10.220.98.143 with SMTP id q15mr29321946vcn.38.1402393973762; Tue, 10 Jun 2014 02:52:53 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id hl8si12860886vdb.98.2014.06.10.02.52.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 02:52:53 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id hq11so7406716vcb.25 for ; Tue, 10 Jun 2014 02:52:53 -0700 (PDT) X-Received: by 10.221.29.137 with SMTP id ry9mr31713060vcb.6.1402393973692; Tue, 10 Jun 2014 02:52:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.54.6 with SMTP id vs6csp212309vcb; Tue, 10 Jun 2014 02:52:53 -0700 (PDT) X-Received: by 10.66.142.42 with SMTP id rt10mr4316363pab.1.1402393972718; Tue, 10 Jun 2014 02:52:52 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xo10si2283762pac.162.2014.06.10.02.52.51; Tue, 10 Jun 2014 02:52:51 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751936AbaFJJwm (ORCPT + 27 others); Tue, 10 Jun 2014 05:52:42 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:45978 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847AbaFJJwj (ORCPT ); Tue, 10 Jun 2014 05:52:39 -0400 Received: by mail-pd0-f179.google.com with SMTP id fp1so5967472pdb.10 for ; Tue, 10 Jun 2014 02:52:39 -0700 (PDT) X-Received: by 10.68.171.193 with SMTP id aw1mr10423848pbc.117.1402393959234; Tue, 10 Jun 2014 02:52:39 -0700 (PDT) Received: from [192.168.0.114] ([183.247.163.231]) by mx.google.com with ESMTPSA id bu1sm68528870pbb.54.2014.06.10.02.52.36 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 02:52:38 -0700 (PDT) Message-ID: <5396D529.308@linaro.org> Date: Tue, 10 Jun 2014 17:51:37 +0800 From: "kefeng.wang" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Tejun Heo CC: Hans de Goede , Zhangfei Gao , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, wangkefeng.wang@huawei.com, xuwei5@hisilicon.com Subject: [PATCH] ahci: disable ncq feature for hisilicon sata References: <1398416351-30567-1-git-send-email-kefeng.wang@linaro.org> <20140514170757.GD15690@htj.dyndns.org> In-Reply-To: <20140514170757.GD15690@htj.dyndns.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kefeng.wang@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , NCQ feature is unsupported on hisilicon sata controller, so disable it. This version of IP is used by hip04 and hix5hd2 soc. Signed-off-by: Kefeng Wang --- drivers/ata/ahci_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index ebe505c..0cfda8b 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -58,7 +58,7 @@ static int ahci_probe(struct platform_device *pdev) } if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) - hflags |= AHCI_HFLAG_NO_FBS; + hflags = AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, hflags, 0, 0);