From patchwork Wed Jun 18 07:15:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 32109 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f198.google.com (mail-ie0-f198.google.com [209.85.223.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 59A0D206A0 for ; Wed, 18 Jun 2014 07:15:51 +0000 (UTC) Received: by mail-ie0-f198.google.com with SMTP id y20sf3425192ier.9 for ; Wed, 18 Jun 2014 00:15:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=PzmuU45gAA0V/+OL9umvYSaSCbCLNdvW6XOvcDkW46c=; b=lX6I+8lNfOtCejJFGwYfKoFeS1Cr6q3KJCWSjOc3TtQzfhSXEodFREAaKmN81gvOrY rzN+96IAN/+CVCnmXbzCrNN0ZZo0Kz3xADeDohcgP6Vm5kh9bMcL2ogkGcig06KUyPih bqp8w2F5fNlrTNgARjedZt+isWX1WSN5gc/M6qjq0qMth0oAReP//epHfbt9w8bKbD2w e2fozHoZJzi8K5Cn5pBOTdQlRNEJcm2bAI9ZUP87uEuy9ZBL09jHAVK9YKXs14oRG7cO 5fSm8YH7rQTfo2IKrURhtdSEu9DbflBnSWr+T6dGWgkUE9xtFJ/Q0ZivlAzNHvD+xWQY pGqw== X-Gm-Message-State: ALoCoQklr1gS02sEWAwjFLHkI/Ze910QDN7UlMVDPIGADYjILHxEQ7nghj7tZkiAC56ypVPFNvy4 X-Received: by 10.182.105.230 with SMTP id gp6mr103186obb.18.1403075750902; Wed, 18 Jun 2014 00:15:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.209 with SMTP id x75ls4971568qgx.46.gmail; Wed, 18 Jun 2014 00:15:50 -0700 (PDT) X-Received: by 10.58.167.168 with SMTP id zp8mr63083veb.33.1403075750794; Wed, 18 Jun 2014 00:15:50 -0700 (PDT) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by mx.google.com with ESMTPS id jc7si470417vdb.66.2014.06.18.00.15.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 00:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.172 as permitted sender) client-ip=209.85.128.172; Received: by mail-ve0-f172.google.com with SMTP id jz11so402302veb.17 for ; Wed, 18 Jun 2014 00:15:50 -0700 (PDT) X-Received: by 10.58.216.163 with SMTP id or3mr91884vec.80.1403075750694; Wed, 18 Jun 2014 00:15:50 -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 vs6csp262651vcb; Wed, 18 Jun 2014 00:15:50 -0700 (PDT) X-Received: by 10.66.246.229 with SMTP id xz5mr94315pac.119.1403075749807; Wed, 18 Jun 2014 00:15:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id oq8si1167478pab.231.2014.06.18.00.15.49; Wed, 18 Jun 2014 00:15:49 -0700 (PDT) Received-SPF: none (google.com: devicetree-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 S1756356AbaFRHPr (ORCPT + 8 others); Wed, 18 Jun 2014 03:15:47 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:54611 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756398AbaFRHPq (ORCPT ); Wed, 18 Jun 2014 03:15:46 -0400 Received: by mail-pa0-f42.google.com with SMTP id lj1so439036pab.15 for ; Wed, 18 Jun 2014 00:15:46 -0700 (PDT) X-Received: by 10.66.142.42 with SMTP id rt10mr211620pab.1.1403075745969; Wed, 18 Jun 2014 00:15:45 -0700 (PDT) Received: from localhost.localdomain ([180.150.148.224]) by mx.google.com with ESMTPSA id fx5sm1749671pbb.62.2014.06.18.00.15.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Jun 2014 00:15:45 -0700 (PDT) From: Zhangfei Gao To: tj@kernel.org, hdegoede@redhat.com, arnd@arndb.de, mark.rutland@arm.com, xuwei5@hisilicon.com, kefeng.wang@linaro.org Cc: linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Zhangfei Gao Subject: [PATCH RFC 2/2] ahci: remove AHCI_HFLAG_NO_FBS setting Date: Wed, 18 Jun 2014 15:15:37 +0800 Message-Id: <1403075737-19853-1-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1403067249-8021-3-git-send-email-zhangfei.gao@linaro.org> References: <1403067249-8021-3-git-send-email-zhangfei.gao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@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.128.172 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: , AHCI_HFLAG can be set directly in dts. For example ahci:sata@f9900000 { no-fbs; no-ncq; }; Signed-off-by: Zhangfei Gao --- drivers/ata/ahci_platform.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index ebe505c17763..c29fa4a553f4 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -34,7 +34,6 @@ static int ahci_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct ahci_platform_data *pdata = dev_get_platdata(dev); struct ahci_host_priv *hpriv; - unsigned long hflags = 0; int rc; hpriv = ahci_platform_get_resources(pdev); @@ -57,11 +56,7 @@ static int ahci_probe(struct platform_device *pdev) goto disable_resources; } - if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) - hflags |= AHCI_HFLAG_NO_FBS; - - rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, - hflags, 0, 0); + rc = ahci_platform_init_host(pdev, hpriv, &ahci_port_info, 0, 0, 0); if (rc) goto pdata_exit;