linux-mips
[Top] [All Lists]

Re: [PATCH V2 11/16] ata: Use 32-bit DMA in AHCI for Loongson-3.

To: Huacai Chen <chenhuacai@gmail.com>
Subject: Re: [PATCH V2 11/16] ata: Use 32-bit DMA in AHCI for Loongson-3.
From: Jeff Garzik <jeff@garzik.org>
Date: Tue, 19 Jun 2012 08:32:58 -0400
Cc: Ralf Baechle <ralf@linux-mips.org>, linux-mips@linux-mips.org, Fuxin Zhang <zhangfx@lemote.com>, Zhangjin Wu <wuzhangjin@gmail.com>, Huacai Chen <chenhc@lemote.com>, Hongliang Tao <taohl@lemote.com>, Hua Yan <yanh@lemote.com>, linux-ide@vger.kernel.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=yYOsUDd8L4+KTbsIAshRDiX2aXQmEfKaRB2bBx2f3b4=; b=p2iI57Mks81UYpPD/y/sjr6yesRLxq3Xh7Beu316zyTHwfJGKkG3PSRXxvyy88BwKM FpkqTCAo60Ic2VswMo81k2Di9I8Bbv9xHgFxIOksbDJAUNa1VNy+gX/b/i3oEVok7d9a yRfGJJ2zZl9mNSEEXdFrDoEizkqUigmkJabBzOQxRfMqeIUWdiakeD5T7wisXJr6j9Nv pnkEly+x33ZG8NEtr3Wcgwlc5tcc288+8K3IitC7EQR8GoecYbbgLqMfs/dZ4jDHWUdp A8nJjogFX2lZsG1bYGs52FFIaBWkBz2IfylTwCgMRCCH/CRTYjJ5DktklVwDccs6xODG HKvQ==
In-reply-to: <1340088624-25550-12-git-send-email-chenhc@lemote.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
References: <1340088624-25550-1-git-send-email-chenhc@lemote.com> <1340088624-25550-12-git-send-email-chenhc@lemote.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
On 06/19/2012 02:50 AM, Huacai Chen wrote:
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index ebaf67e..3e3cfd8 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -183,7 +183,12 @@ static const struct ata_port_info ahci_port_info[] = {
        },
        [board_ahci_sb700] =    /* for SB700 and SB800 */
        {
+#ifndef CONFIG_CPU_LOONGSON3
                AHCI_HFLAGS     (AHCI_HFLAG_IGN_SERR_INTERNAL),
+#else
+               AHCI_HFLAGS     (AHCI_HFLAG_IGN_SERR_INTERNAL |
+                                               AHCI_HFLAG_32BIT_ONLY),
+#endif
                .flags          = AHCI_FLAG_COMMON,


NAK -- the place to fix this up is ahci_init_one()


<Prev in Thread] Current Thread [Next in Thread>