Message ID | 1489050809-15265-1-git-send-email-andy.tang@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C04A0604D9 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Mar 2017 09:28:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBFA1285D2 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Mar 2017 09:28:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEDC0285E1; Thu, 9 Mar 2017 09:28:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 286C6285D2 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 9 Mar 2017 09:28:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=1kUBYHFSD+D7mFJOFF+jJjwQGA+lQoxLey5jBraRDyE=; b=kLr4p5Nl40sVX7 GTBNfoVBYvwT1CuvGVXU2fdxX7kGZY33uLkAugoOxIlEbHRSfgPom8xf0Flb8UwDBv9QYHXkWkgLt DemG5MyrvVkSjp6HzSUeVBR5bqJylWwR23oYheLeS9lR28rtkTFCa6qqI3uqf2EXMgAEef0jrpDju 1qMbjdFOfRyVleN5G/xCkoJ2Li6CV8fXMBZLY+39FBfgRntXVBZozCQSS13ttWNW6vUh/xuS6bPZD v8E1fJYozmvo6YB5zyoRdj/fIl+ATEIh8ndmIJzYcjY0iQBAAInHeQp+Yu1rIddzDWDuNftE4DA6c 9CrDKA4CXa33J/LLR9Rg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cluMt-0005jr-SZ; Thu, 09 Mar 2017 09:28:19 +0000 Received: from mail-by2nam01on0046.outbound.protection.outlook.com ([104.47.34.46] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cluMU-0005fx-PG for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2017 09:27:56 +0000 Received: from BN6PR03CA0028.namprd03.prod.outlook.com (10.175.124.14) by CY1PR0301MB0731.namprd03.prod.outlook.com (10.160.159.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Thu, 9 Mar 2017 09:27:32 +0000 Received: from BN1BFFO11FD016.protection.gbl (2a01:111:f400:7c10::1:162) by BN6PR03CA0028.outlook.office365.com (2603:10b6:404:10c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.961.14 via Frontend Transport; Thu, 9 Mar 2017 09:27:32 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD016.mail.protection.outlook.com (10.58.144.79) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.947.7 via Frontend Transport; Thu, 9 Mar 2017 09:27:32 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v299RSt5013484; Thu, 9 Mar 2017 02:27:29 -0700 From: Yuantian Tang <andy.tang@nxp.com> To: <tj@kernel.org> Subject: [PATCH] ahci: qoriq: correct the sata ecc setting error Date: Thu, 9 Mar 2017 17:13:29 +0800 Message-ID: <1489050809-15265-1-git-send-email-andy.tang@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131335252525365427; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39380400002)(39840400002)(39860400002)(39450400003)(39850400002)(39410400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(86362001)(189998001)(53936002)(81166006)(104016004)(8936002)(4326008)(305945005)(85426001)(47776003)(5003940100001)(356003)(8676002)(54906002)(110136004)(38730400002)(5660300001)(8656002)(77096006)(50226002)(50986999)(36756003)(48376002)(6916009)(2906002)(105606002)(33646002)(2351001)(50466002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0731; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD016; 1:rPesZfjXHSV5Oe27czXJfQx7OephfsI9ygHfVf+gG1A6Vq4OKk9IFheHXcCS2zBgMv0Gk7Yx7N8FYOfKvUHrhtrgl/v1+STm0V/LpN+Ev7dLJCGQkMhHc9ijlyycmA7Tq1ZJ/J7CTJleUrPy36jR62YZgJ2HMsBnU/OnfVbOkakqtZjWT3P6yV7CBTp1qZjZD21Mh3UUaQVAcIvoHqwQIeNZrStBw72Ir+xVhrtAUbNRh5SJBVOBxJkooSnC6aLMaJ2hEPDSpLpI7dMJKt3K0vAFJbJQVXR5eJJIjbxH9Dkf2n+wVl908LTLJLzUdO3wmCJzBhgsB5z91CCrOjFkVOaLVn8Dsk1THlAM6SLmZv20z4J61G1vovCJ80gaWgLCECtsehiP3Vueu4Foqywkg6iF6JF4uZeRUJIq7vgEP6+JMIrCtl/8uTG4L7qgwuC3yWsMpg331QbyPcgkcvi18lJMIVwARr8T45r10EOWShkDv0J8RcHdo0QMUMo3S/M/PBvYQlj7m8bKCyvdtL/RC0slauzrJXhQLpPWJblVYJeLFQul83QBeouRtpq1RHRKH7oP3AATQkC31XHt7h3NFVeXHRVlxPXij9JuZW6nQrEnHafeYS92BX5MvGizyk+erCeeFi2IHLjkRbjjrwLuhYEPEheFul9MdH/0ihYKkm4+5f8HH9RSNl55VTUcXpHG8ofqJB+Gq5aYhRH9VYBf/Q== MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 637af55a-aaa3-437d-5752-08d466ce83b7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0301MB0731; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0731; 3:aTeetxIG23LBpRNVYlDYi5qVqBdiyrY4EecDa7q/WEOAX9mJjD5+J94F1EW2F7HfyzbqGreIV8gfK6f34JVAbFp4CaMOPWHS5E3hLEPgcUl+I2GjX55HT1GQXHqI5mVCwJckonT9PD/AHptVV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112FE9394600A5CD0A7DCF3210@CY1PR0301MB0731.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13024025)(13017025)(13015025)(13018025)(5005006)(13023025)(8121501046)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(20161123559025)(20161123565025)(20161123561025); SRVR:CY1PR0301MB0731; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0731; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0731; 4:DjY+DPttZU6pUXs6VvHfFbeGDnua319bziQA4F/2tv2qx2IJO+xXogW50BVma5pw6lZYNe2YXrnfRQLfYmRJP/wb1bP2Y2kbYTpFN9fm6l+U3Q+Wl4jmkUYkyHmnGZWRbK/zhQw0jO5oY4eMoAuLsx42mzE63V1NQp0q2wzP+K1LutvVbL4EqLXczm6ozfUrpqCZf9Zf8umnZ2eMG0uQGqrBx2GQqCenmVOJ9ucFCv+CeosDZ7+MlpexKgi3QRfqHmLBMN1QdVYrHHfo0l0kAmcIsv/nWfnfzurgEVTod15FwZnrTLblDRBIh0l6WXGEmsbahMElTA3/ITrE/03tA3jGgJ6g+Uegb+oK0qnr8GgBLZM1dpNDLxfyPsEbTSri/Rfkr3AcpsRQERntvj5NoKnJmamHNXs6D8LTFFO+rCPk587p42N3jrneUITbcbLWkFWNgIiF4aQ5YUAT5TZ7z+XBeGm4f1e8LbVj8XzSmj+VcUcLZs6rEFXxwCn/tI6kjGEY859cq/iuhELd8WBDtKYFkWw45mnHxZG0K4AhrquddjPAWw1MsoTBt4WdKTzDfyog8Vp8UW1FF2vr/MWGr7DhNS/yGSqeZaupskzO6Tso1dRFTD3oL+Ne+qWnjS0J4wUcpmc7T4+X0ThrOnP9uDfkJwKIew1niz8zQVbTxPCFTpBcYylSiORx6+nRgZtB4gAkHLLTnUKRnKzEGq/HLoghrpVbtSXngx2lRpeLBBs/Z4ThYbb+Ujygj+69VFxM X-Forefront-PRVS: 0241D5F98C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0731; 23:/LreeAvNaVkyU17qHaaBp0cTIGAERLE1z+pbaHw?= =?us-ascii?Q?zZEVe2ztoOdXwQcdeAzJVZiMS39GMnY1mGFWrtpCZq+7oKD4eA5APRbW0sz+?= =?us-ascii?Q?h06eOcvn/Az/cyzP4Hj4qnKOszM6UgPCPVyMkUksqoICoBmcxNoPc2bBlh96?= =?us-ascii?Q?GaXMaOfUEbjSZKXP9vHIhbGAJd931cKOYK5a5kPakLpsUNabAbcrxXU9TOUz?= =?us-ascii?Q?AEiZ+rrM5qxyC5WA91j/fnOCwMEIQx3yXJinvfGk8pWkaa3l1CWSZ7POErFH?= =?us-ascii?Q?N97Wd1hQPA0o40JUCJ3k1AQTrQFuabRdtmCwBf8roUrol89RdRiAiogwQ7Ng?= =?us-ascii?Q?Z2wHuDI2qG4NEFMRc+bwBRBP6HNqD99vZ9zTqD+dVkhi160sYPAmkvmLgrOo?= =?us-ascii?Q?pCYfuEDCA5vaC0bWJv1UBGBCtjkDK/+U/kx4H30pgVeK2y7nq3rNYkOIZ7mq?= =?us-ascii?Q?kJmj7rZF/KJqIE256om8xBXQMtLclATrsUfc4fMrEm1J4AqWoI1fCcdw72Pw?= =?us-ascii?Q?b5PnWL0xRpc11BhKKYG7UamlxcqK8LDe8jUMtSbkiKWPx0hhjEfhLc1s15zQ?= =?us-ascii?Q?fzYtE28NRaqu21hBKNePs/uAWeguGQINeROW+YbWermchjexKPsPt0RiJDnX?= =?us-ascii?Q?wkTWZacRuY4POG/ObGUtlIe/4TVlr3QVSa13SkkpQYVGEYUihZRoBD2p/RD1?= =?us-ascii?Q?nnjnO06XQkjssiTy5U6ZGEXzzWBu0KNr+uACRyVaxAPArqBYGPk/yS1/IyNF?= =?us-ascii?Q?L1RRJUL+L+lWbmRKVExIgykeL/RgNXddfrsCO7zWUtgEmbKNPHw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; 24:PuaxNKAdoh2Cabz3Kr7rb2567thcK78qufS9QC6wuPrHD5KklAkvDXMEo27Rq48PYJPRVEJOkUfE54s1KPKx9fpPwcwPVK2vriw9czZiaTU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0731; 7:gkkoAk+MLvz+Me4LEVwYWBWLbV6DOkFPpNRAEatk0M6qz0XQgX+WhcrDyNY6Wb2NhqarN1xhAV66v+kVBk1kjxSbM+iwvAX9YinF8M1FFf4A9tdZxgYnifO7oshIKnLdSFxG2NNe+dpVNSL62I3iScFnVuq8dq4/1LhNGrMwSxP0Bq/UGryK+rPmYFbaavgM4xZ/UTHba8rCQ7xcdL7WWKHoEu6Hk3rtaU3tPYUrH4zfbEZHGSGkuyXKe1lle0YkLVV/F5XAbM6YXUlItaH8xfqstSRAVKt2q8+RuKZ+O2mW5ZrDqcHq0LqXd/ICQ3qOF+Y3i4cDpa8KWPzYcYMItg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2017 09:27:32.3337 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0731 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_012754_868869_D4E94536 X-CRM114-Status: GOOD ( 12.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-ide@vger.kernel.org, Yuantian Tang <andy.tang@nxp.com>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
On Thu, Mar 09, 2017 at 05:13:29PM +0800, Yuantian Tang wrote: > Sata ecc is controlled by only 1 bit which is 24bit in big-endian > in ecc register. So only setting 24bit to disable sata ecc prevents > other bits from being overwritten in ecc register. > > Signed-off-by: Tang Yuantian <andy.tang@nxp.com> Applied to libata/for-4.11-fixes. Thanks.
diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c index 85d8332..4c96f3a 100644 --- a/drivers/ata/ahci_qoriq.c +++ b/drivers/ata/ahci_qoriq.c @@ -177,7 +177,8 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) case AHCI_LS1043A: if (!qpriv->ecc_addr) return -EINVAL; - writel(ECC_DIS_ARMV8_CH2, qpriv->ecc_addr); + writel(readl(qpriv->ecc_addr) | ECC_DIS_ARMV8_CH2, + qpriv->ecc_addr); writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); if (qpriv->is_dmacoherent) @@ -194,7 +195,8 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) case AHCI_LS1046A: if (!qpriv->ecc_addr) return -EINVAL; - writel(ECC_DIS_ARMV8_CH2, qpriv->ecc_addr); + writel(readl(qpriv->ecc_addr) | ECC_DIS_ARMV8_CH2, + qpriv->ecc_addr); writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); if (qpriv->is_dmacoherent)
Sata ecc is controlled by only 1 bit which is 24bit in big-endian in ecc register. So only setting 24bit to disable sata ecc prevents other bits from being overwritten in ecc register. Signed-off-by: Tang Yuantian <andy.tang@nxp.com> --- drivers/ata/ahci_qoriq.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)