Message ID | 20191217100933.34684-3-Zhiqiang.Hou@nxp.com |
---|---|
State | Accepted |
Commit | 282d992e1a66ecd8e8cca74e0759b7e5b6516e40 |
Delegated to: | Priyanka Jain |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="qP7T0Gsi"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47cYnR0ptyz9sRm for <incoming@patchwork.ozlabs.org>; Tue, 17 Dec 2019 21:11:07 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 08D6581675; Tue, 17 Dec 2019 11:10:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="qP7T0Gsi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 967B78161D; Tue, 17 Dec 2019 11:10:47 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, FORGED_SPF_HELO, SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on062e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::62e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3696C814FA for <u-boot@lists.denx.de>; Tue, 17 Dec 2019 11:10:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zhiqiang.hou@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bGNlqSF5oHw1dhUq4qN7X26V0fB99IiVaw4Mv/VQbUgcaIQUqzGYRnuCQP5Spcgd1vt94FPf3Dg1TIYZaM95nc1ZpoqzNm8qWX5OK9eRUSah3aQLkgG+X/MidJxSjf9Ztf2Id0Bg50vyAJtXIvOfTyQGe7/oD1OPNOnUtazuIZuYR+VXnaLbO6A/SQn6wlk8lCNxNiSQbRyG8XIa9gByRoOQnQjxylxbVdeR2F4lIiD5UXpXQjqaa22mp4pgSBjt+2+txNxS98GzGKCHoeH4jx6ivTx/ez2Kc2wsV+3B/cPBuTVRVadtEFE9COOpJPNHiOOtKWuw9KBrg5jK6uzljg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y+3qW5h8rUceODQIdbsMnPnI/fVMb+QOF4ycLRrBlQU=; b=hCgu3RUHRVQkj3MwmeRiUAsQpihlJIoGEhGsg0tbWvoH6c7759m05UFNIAEuG63r+S26jENgm4rgJEJ5QJh1XWcdYp9ui+4F+9h7waHkpvu9/Co6vB/xbX2t9D0KtsLh/1RP4cIQTvlTgeKmz1PJrZiK8hqLjO1rT+vu+gkbQS9yJv3x3RmGKRBzU67OVb4Uz5OxvrvstWZoqVHIi0K4RNFP/Rbqy5UNiv2KuNmJwYeNRFXhWOjP7APvTbhKRNk5CN4W6Ic7oXOiRzLKe6G75qOt4GYSwNlt4Q/5T+bhcH2popx/IP0hDlpo7EnUO0rwx1jQGpWVVAtN0GNexgi89Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Y+3qW5h8rUceODQIdbsMnPnI/fVMb+QOF4ycLRrBlQU=; b=qP7T0GsinRatS6ntwKb0m248gstgRxPFgM+S87ADuVLbPRQXe+zd0lzvS2AlyYmpCsHoSuo2KAkxrs4+g3iARpxKCTBnoRLFLF/g5rfCY0VJ1tUPgVAQkdhmn55NaoRYRY5Oo6m2hp6xTJk1QKk4ri8hLp3DLURcB5KTpaN0csQ= Received: from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by DB8PR04MB5882.eurprd04.prod.outlook.com (20.179.11.160) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.18; Tue, 17 Dec 2019 10:10:43 +0000 Received: from DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::2198:bb00:1add:d638]) by DB8PR04MB6747.eurprd04.prod.outlook.com ([fe80::2198:bb00:1add:d638%3]) with mapi id 15.20.2538.019; Tue, 17 Dec 2019 10:10:43 +0000 From: "Z.q. Hou" <zhiqiang.hou@nxp.com> To: "u-boot@lists.denx.de" <u-boot@lists.denx.de>, Priyanka Jain <priyanka.jain@nxp.com>, "M.h. Lian" <minghuan.lian@nxp.com> Subject: [PATCH 2/2] pci: layerscape: Fix the BARs disable function Thread-Topic: [PATCH 2/2] pci: layerscape: Fix the BARs disable function Thread-Index: AQHVtMI9xEqsw7kTVkGDewuxA3IBgA== Date: Tue, 17 Dec 2019 10:10:43 +0000 Message-ID: <20191217100933.34684-3-Zhiqiang.Hou@nxp.com> References: <20191217100933.34684-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20191217100933.34684-1-Zhiqiang.Hou@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HK2PR03CA0046.apcprd03.prod.outlook.com (2603:1096:202:17::16) To DB8PR04MB6747.eurprd04.prod.outlook.com (2603:10a6:10:10b::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [119.31.174.73] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 2dcbd6e8-f9c3-4141-5215-08d782d96027 x-ms-traffictypediagnostic: DB8PR04MB5882:|DB8PR04MB5882: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: <DB8PR04MB5882B07B3056A6ECF636DCE584500@DB8PR04MB5882.eurprd04.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:5797; x-forefront-prvs: 02543CD7CD x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(39860400002)(376002)(396003)(346002)(199004)(189003)(52116002)(6506007)(186003)(66946007)(2906002)(4326008)(6486002)(8676002)(6512007)(2616005)(71200400001)(8936002)(478600001)(81166006)(81156014)(5660300002)(86362001)(110136005)(316002)(66446008)(66556008)(64756008)(26005)(36756003)(1076003)(6636002)(66476007); DIR:OUT; SFP:1101; SCL:1; SRVR:DB8PR04MB5882; H:DB8PR04MB6747.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WB08TpiHwfw0O9eZndRoxsZd+Voyx1LJ+VFYCwhGRNEgnToGQZLj1Kgfezfwy1qpYeB1cg0JlPjXL6NbH7T8R0XbwNn/DgovBv2Lnj9rlO0ItyF1SJlK1SxpiEYJsu6dSWVQTM1+cEo3lE4SBjohW6SCYCOgN1UzWAkZnV1rBp47NAxL2+Uc7XLarAxpGL7cFmu/pmbA7QbG7kFGcRWyBmD0bZAAhYaREglNXF5pWRpq0HhjPjiDFAgaT36EyUN9Vd/i+K2rE6VPN9+2cB4Sa64nOYwj4P997V0jZCWldCv/PuzSCA82QFwoU2KeExPazEzprQHoKLLtPV6PlONrMaeU87EQ0kHgCObcJuJm5siji5Bue46Jxk76moE4l0HM17KFuJQqPaDtl6WB2r6kcwoYkvyqAaEWcb6nMFNO/pZg1eCmfOAaEMEVDvID25Ig Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2dcbd6e8-f9c3-4141-5215-08d782d96027 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Dec 2019 10:10:43.2136 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: yCA9y9mq/wuPr4GHj7BDOPy403RO5bTqD6rSU8cRxaZ/ZGRITSlpmDmYKP4mfLeHpQM4U2mTc6vRBrf39dLtMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB5882 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Cc: "Z.q. Hou" <zhiqiang.hou@nxp.com> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
pci: layerscape: Fix the BARs disable function in RC mode
|
expand
|
diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 96533cb2d9..d8ca7e71f8 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -312,17 +312,6 @@ static void ls_pcie_drop_msg_tlp(struct ls_pcie *pcie) /* Disable all bars in RC mode */ static void ls_pcie_disable_bars(struct ls_pcie *pcie) { - u32 sriov; - - sriov = in_le32(pcie->dbi + PCIE_SRIOV); - - /* - * TODO: For PCIe controller with SRIOV, the method to disable bars - * is different and more complex, so will add later. - */ - if (PCI_EXT_CAP_ID(sriov) == PCI_EXT_CAP_ID_SRIOV) - return; - dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_0); dbi_writel(pcie, 0, PCIE_CS2_OFFSET + PCI_BASE_ADDRESS_1); dbi_writel(pcie, 0xfffffffe, PCIE_CS2_OFFSET + PCI_ROM_ADDRESS1);