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: 4373541 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 75FE79F36A for ; Wed, 18 Jun 2014 07:18:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B9F40201FE for ; Wed, 18 Jun 2014 07:18:18 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A23C720303 for ; Wed, 18 Jun 2014 07:18:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WxA6R-0008Lq-5j; Wed, 18 Jun 2014 07:16:15 +0000 Received: from mail-pa0-f46.google.com ([209.85.220.46]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WxA6L-0008A7-LJ for linux-arm-kernel@lists.infradead.org; Wed, 18 Jun 2014 07:16:10 +0000 Received: by mail-pa0-f46.google.com with SMTP id eu11so438443pac.33 for ; Wed, 18 Jun 2014 00:15:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=MMu1kvk0qyI45JMD4Bwsf8Z/N3TIyLaAg08ilGM03gk=; b=Fs6L7ewMouYioiPKtpYfQHJhEZxI4ApDWaTIqLltV1HR5fM5ySkKbOCHHDuZIhMyV2 Kez+wOQlr8e8+/nxBN2XnuHdrHlSyRg+f9m1wNoV+cWUF+7JE1RQ0Kgyr1gmEF68SIqc Cu/C3+86Y8EPfmW7x4zNSFmZTtfMFx+7juOrjqOSxrgaRGvfWLo/3xH5LO0tSugcXQG0 gq/PHc3DpPYT+jaL9qiCyNEceHS1Zj7v6Vcz1bxMlwvbgC5AjOiZGavO59g+h27rVKvo DhUJkqo8FmmtBUWq1nyX9Y/J+rpEe29WZzHvy09gHz/WACS3WPQ0/IrdfTnPgoqOxvOU MGQg== X-Gm-Message-State: ALoCoQlxwBdbYM/L4dTrHMLeMCseq2frjfvdu2ZHAldjQ8Sjs681p9PgX2l+tIk2jhTF6PUupOFX 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140618_001609_723910_750DFE19 X-CRM114-Status: GOOD ( 10.18 ) X-Spam-Score: -0.7 (/) Cc: linux-ide@vger.kernel.org, Zhangfei Gao , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;