Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4273516pxu; Tue, 1 Dec 2020 00:16:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWJbaJSjMZfaLHI7Oi/KHDqlOyrpjBnop4vbU8oHtVTns/EKU2QMt6r3b0w1O9ijLzF5J7 X-Received: by 2002:aa7:c544:: with SMTP id s4mr1833437edr.286.1606810588169; Tue, 01 Dec 2020 00:16:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606810588; cv=none; d=google.com; s=arc-20160816; b=IB2lxRhQBmBncph/pmd3LRl9vdy5GIyX2Pb+Zm2/XNyi0YQuuW5x5FRL9dm/EQ7Swe bHgOHhv1VuaLSVskujFKMVYgnsdHYdFCPpFwFQr7WwrZDNJLIcHEbxXQjPia6wdiniEU uDqnuNYY5Lhft4qoBFOszXGBJ7MCxHs+CUScZNBbhqDGIRzHjA36FnPNWXDCaACQDErD 7IgKYuBCrkpBkNF4eBWYNvEQY235CesxAq+x6x2O1a8zY3d3WzEhwdDVuJDtVLpoxgxc QIXVkGafNx16fZJQ/TAlM0KBhzhXfjHomgZ/MO2ahUd2OXE9PAqzTlDJaWFoZ7A5CzBr JWDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=40Kiuk7YrWGzqsXgtlmS/zPo51+2G+ljGSjKe3Ryk8U=; b=DVJuX8xaJqJovjYzXJPQYxu3uNQ/JkZDvVYZeXosTcI+n8r45Gq121JEVNkwqbN43t KNtxmeaRz7+C4WDdo+MY2jmDJ5PziNjmlvmvn4lVJKgdZdKmD2XqIVleFmMzjJOyg3TJ VetLakDHrzj0wI0/2xqBRc4GD7ABc3qUYfdxcT2oOfCcswDZTUKQUlKRjVJ4afJYej+q 8LZytL0GRmFodyUZX74KqzuOkhWBNWud2u/nWc7lW8ByVHH2c/8Kh9iYK+rApno+wr1x kwkGnxHzvb1JuiCyYLQqvaymIEvTuAnAdPaFC+1lSjRdrYhqASDlUH5nWJ30mItmXDq8 HA6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp1si531959ejc.21.2020.12.01.00.16.05; Tue, 01 Dec 2020 00:16:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728487AbgLAILY (ORCPT + 99 others); Tue, 1 Dec 2020 03:11:24 -0500 Received: from inva020.nxp.com ([92.121.34.13]:35430 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbgLAILY (ORCPT ); Tue, 1 Dec 2020 03:11:24 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3BB8D1A0A4D; Tue, 1 Dec 2020 09:10:37 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 42FB21A0A4A; Tue, 1 Dec 2020 09:10:35 +0100 (CET) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 502EA402BC; Tue, 1 Dec 2020 09:10:32 +0100 (CET) From: andy.tang@nxp.com To: axboe@kernel.dk Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Yuantian Tang Subject: [PATCH] ahci: qoriq: update the port register settings Date: Tue, 1 Dec 2020 16:18:41 +0800 Message-Id: <20201201081841.16228-1-andy.tang@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yuantian Tang The default values for Port register PORT_PHY2 and PORT_PHY3 are better, no need to overwrite them. The following boards are affected: ls208x, ls1088a, ls1043a, ls1046a, ls1028a and ls1012a. Signed-off-by: Yuantian Tang --- drivers/ata/ahci_qoriq.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c index 5b46fc9aeb4a..896e4dba8500 100644 --- a/drivers/ata/ahci_qoriq.c +++ b/drivers/ata/ahci_qoriq.c @@ -32,8 +32,6 @@ /* port register default value */ #define AHCI_PORT_PHY_1_CFG 0xa003fffe -#define AHCI_PORT_PHY2_CFG 0x28184d1f -#define AHCI_PORT_PHY3_CFG 0x0e081509 #define AHCI_PORT_TRANS_CFG 0x08000029 #define AHCI_PORT_AXICC_CFG 0x3fffffff @@ -197,8 +195,6 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) ECC_DIS_ARMV8_CH2, qpriv->ecc_addr); writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); - writel(AHCI_PORT_PHY2_CFG, reg_base + PORT_PHY2); - writel(AHCI_PORT_PHY3_CFG, reg_base + PORT_PHY3); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); if (qpriv->is_dmacoherent) writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); @@ -206,8 +202,6 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) case AHCI_LS2080A: writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); - writel(AHCI_PORT_PHY2_CFG, reg_base + PORT_PHY2); - writel(AHCI_PORT_PHY3_CFG, reg_base + PORT_PHY3); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); if (qpriv->is_dmacoherent) writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); @@ -221,8 +215,6 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) ECC_DIS_ARMV8_CH2, qpriv->ecc_addr); writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); - writel(AHCI_PORT_PHY2_CFG, reg_base + PORT_PHY2); - writel(AHCI_PORT_PHY3_CFG, reg_base + PORT_PHY3); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); if (qpriv->is_dmacoherent) writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); @@ -238,8 +230,6 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) ECC_DIS_LS1088A, qpriv->ecc_addr); writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); - writel(AHCI_PORT_PHY2_CFG, reg_base + PORT_PHY2); - writel(AHCI_PORT_PHY3_CFG, reg_base + PORT_PHY3); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); if (qpriv->is_dmacoherent) writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); @@ -247,8 +237,6 @@ static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv) case AHCI_LS2088A: writel(AHCI_PORT_PHY_1_CFG, reg_base + PORT_PHY1); - writel(AHCI_PORT_PHY2_CFG, reg_base + PORT_PHY2); - writel(AHCI_PORT_PHY3_CFG, reg_base + PORT_PHY3); writel(AHCI_PORT_TRANS_CFG, reg_base + PORT_TRANS); if (qpriv->is_dmacoherent) writel(AHCI_PORT_AXICC_CFG, reg_base + PORT_AXICC); -- 2.17.1