Message ID | 20190311093130.7209-8-Zhiqiang.Hou@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-2.web.codeaurora.org (Postfix) with ESMTP id 94783139A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:31:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7AECB28FC7 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:31:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F0DE28E3A; Mon, 11 Mar 2019 09:31:44 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 1C84428FD1 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:31:44 +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:In-Reply-To:References: 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: List-Owner; bh=O586agp5dOIZtLMPEj+aZOkllzdRnTB7RQCy+shnmqE=; b=a+t90KeArSQ/A7 Uy5pe32EAZsPFbpTyB7XtIU82lA3+WQ5GkPWuydApi0JAi/MK2hAXN/r6JIVFbOVeQPYRPD2KPHIn 4NU7KczL/gSEntAwE92nav5gKe58yIB1eaFtPnbc2o4jlHJB7N0JI6heulBoWA40tqc22cpWh9lhk kMxzjNGfsDy7Gt3bxlqqp7ma1yZwSiuw6LC7GIcyPsv5H+kPx8doVmzHM1ZzTv9otHfs1n+nQ9oov JxnRvbtrENpGq28tXTwYbRCOo0zyNcIXIP+/gQELY/rfVD895tBy9G4jmCcOGjQZA58ksg+hS3Uu9 OUhRhoDYAyjayDcmNe4A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3HHU-0001dr-7y; Mon, 11 Mar 2019 09:31:36 +0000 Received: from mail-he1eur01on0629.outbound.protection.outlook.com ([2a01:111:f400:fe1e::629] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3HH0-0008Px-4a for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 09:31:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iRVbxaOVpCHN4G6WjFD5HlukrFig/GTSuHoq4pwU7DA=; b=iWQENo4tsOBsVNBWUEq0KLvK1u6SgkCF48Zf5jdaKWCBrtz926BGNUHbfQAG8BWOu+GMKd7+OgNnXY3fAOYoOET/oJgSzjSIMAjBg0gn6u1WaMuqsQ1L1iyE9hMWFTjNJb/jREDwtBYjiK+IjLDF3eochzGcG72OAUYIjk5mv6M= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB5592.eurprd04.prod.outlook.com (20.178.87.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Mon, 11 Mar 2019 09:30:51 +0000 Received: from AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::30cc:e034:1f7a:2cc7]) by AM6PR04MB5781.eurprd04.prod.outlook.com ([fe80::30cc:e034:1f7a:2cc7%2]) with mapi id 15.20.1686.021; Mon, 11 Mar 2019 09:30:51 +0000 From: "Z.q. Hou" <zhiqiang.hou@nxp.com> To: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "bhelgaas@google.com" <bhelgaas@google.com>, "robh+dt@kernel.org" <robh+dt@kernel.org>, "mark.rutland@arm.com" <mark.rutland@arm.com>, "l.subrahmanya@mobiveil.co.in" <l.subrahmanya@mobiveil.co.in>, "shawnguo@kernel.org" <shawnguo@kernel.org>, Leo Li <leoyang.li@nxp.com>, "lorenzo.pieralisi@arm.com" <lorenzo.pieralisi@arm.com>, "catalin.marinas@arm.com" <catalin.marinas@arm.com>, "will.deacon@arm.com" <will.deacon@arm.com> Subject: [PATCHv4 07/28] PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window Thread-Topic: [PATCHv4 07/28] PCI: mobiveil: use WIN_NUM_0 explicitly for CFG outbound window Thread-Index: AQHU1+0doYLeE65/10mqwvkZc/8Elw== Date: Mon, 11 Mar 2019 09:30:51 +0000 Message-ID: <20190311093130.7209-8-Zhiqiang.Hou@nxp.com> References: <20190311093130.7209-1-Zhiqiang.Hou@nxp.com> In-Reply-To: <20190311093130.7209-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: HK0PR03CA0015.apcprd03.prod.outlook.com (2603:1096:203:2e::27) To AM6PR04MB5781.eurprd04.prod.outlook.com (2603:10a6:20b:ad::19) 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-correlation-id: a0998542-8984-4c35-65bf-08d6a6044028 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB5592; x-ms-traffictypediagnostic: AM6PR04MB5592: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM6PR04MB5592; 23:x9z+cPiQ0PraFUNlaCxlhaapZXF3IxFETnMlmpq?= =?iso-8859-1?q?NuODYL05pnFxXO+?= =?iso-8859-1?q?/gV7NlZDoYDAA/GZf+HSzDvqzauj27MWmk0vT1/JD52sfRuX8WlkF08uxm06?= =?iso-8859-1?q?Db0D5kzyKKb2+QbKtBf/o7HZ4vm+LSdOWixiMnJ7GovRKEdht8aN7IiYtUsx?= =?iso-8859-1?q?kUHF16sfX9tgAmZ4rsZR8B1FqY6CAP56EobfSpnf5zWcxQmrhhRy8xyVmpPL?= =?iso-8859-1?q?X9+OhEw9GgtNlxDPlAJNuMgl5WfLIpdrrNA1qMSFOXVnYkyqRRlQZunsJ60Z?= =?iso-8859-1?q?NGFK+jgI4t/JgTfa8yDTMjYb66+ad5ipesbZ36zmko/kUpZE7yzXIz9gQea/?= =?iso-8859-1?q?GAbw4PtDIRCvQItdJCsAnneVIAS1yxNSUX7FxfZ9U47YzOViqYGMw6pmehJQ?= =?iso-8859-1?q?iK1Tmen0OIOfSWqDYJJKdiOGLdKAX973Q/qGDq/Pm2m5RqrlLTHJ88wHeyj7?= =?iso-8859-1?q?xmY82iY3Fx0Xyd40eO8iLRhklEts6QVTLPqlEqcSJCz1A7W+6Ts3m65gq2HY?= =?iso-8859-1?q?CpC2wASf8fz+eaaM/tZGKOsEOPSwSrEIcojX31HPbzYDqrOJsusN6yrGAja5?= =?iso-8859-1?q?ahvYo+RlzG7ZnnIo5yQ/rI2fZreBN/Hx5OnxgJA6eFr3D55COEihvyE75fvb?= =?iso-8859-1?q?T5iGdLIIpDy+QkiUxN56CNiqHKhmtgjBehsGy9nzgBw8V89YgdO9Tdbw3N8D?= =?iso-8859-1?q?hDe0CPTuZIEzVv32TCSuWuEzod3odeRISvIp21AEDlfpX44f+Vq/60KnbOqE?= =?iso-8859-1?q?wAmZ/Dhg8R5xe/KsUxQoKW3B6eU+Ej21gD5O92equNyXLI3Njer4oQSf7qPZ?= =?iso-8859-1?q?Vov1kXUBbbs4q4OTYrxGmhyIhRhOLECQj29GAtAjjs6bYUxMFYwe7GyoD9Ut?= =?iso-8859-1?q?VDkU0DiB3KyvSqw8CaNpeEkdhMcRFrt/EOCtj9fw1wU02wPsyPPEucgMp3ZR?= =?iso-8859-1?q?TSzI8wGeu/hSBOvxLfyIDPzGbRp8etrYDlC3hnVBliULvbXgweC7eD5vL/O5?= =?iso-8859-1?q?n7zUf8xkvMiJOnNSRzmvoa2go1L5OXTQRfnNcvAQLDMHSw3Qh4tsL2vFcHqT?= =?iso-8859-1?q?XyQWaDfC4SdyP+G/I1ASrNHUj7ae4gGD4ElqrK8zbVJBFJ7cpt4li6boZEVy?= =?iso-8859-1?q?S3V37MK41YyGhfDgzh9s/JaWZUpy40zCK0NvxcKX05K9raEInoEuzy2ICgPK?= =?iso-8859-1?q?RWLf683vy/S/fcI9c2qYEqdZ6shTpcy+3/qiXc6mwgFdQwqOdnuZGEPqV27D?= =?iso-8859-1?q?4pqa+yL72kc/93oA7UmJM+azTQY00Oepd6YPDUmyiAjy5SQzpCyB7o565RqK?= =?iso-8859-1?q?T2Yj4fOGY=3D?= x-microsoft-antispam-prvs: <AM6PR04MB55922E5F48239A818636F25684480@AM6PR04MB5592.eurprd04.prod.outlook.com> x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(346002)(396003)(376002)(136003)(39860400002)(199004)(189003)(5660300002)(4326008)(2201001)(8676002)(478600001)(81166006)(81156014)(14454004)(86362001)(8936002)(50226002)(7416002)(256004)(1076003)(71200400001)(71190400001)(2616005)(476003)(486006)(11346002)(446003)(186003)(305945005)(7736002)(97736004)(68736007)(66066001)(36756003)(6486002)(105586002)(106356001)(6436002)(6512007)(110136005)(76176011)(54906003)(52116002)(99286004)(26005)(386003)(6506007)(3846002)(316002)(6116002)(102836004)(6346003)(25786009)(53936002)(2906002)(2501003)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB5592; H:AM6PR04MB5781.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) authentication-results: spf=none (sender IP is ) smtp.mailfrom=zhiqiang.hou@nxp.com; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: nQVkiW3DgIS65rjkpjn/5q36oNu6QdIsBFFicXS0GmcoJKVI7+szcvSL56CVsp4kiJIrEru8tiMQxLsVt4XLcjtlHl8XTkq83mwCRcsJYf7yiNay0yojtKUxpUcHRk2eTZoqMuA4tN1AJOAMK9MMfdqXTjouToSGBbztRU7Fu7jFwA221EpP2FZnF0GuAmxz4k39WmlkYleTm/sSQ6dc2TN8JiXHEfhv9kjwiBv717DXFRNQy4ZWgsctQvdyYrRzr5fLhIqpaS55RD3cAl0uk6yeohBenCAd+h5aHQcAhAeln7uAudBXULRF/f0OTghPDDb0ZuKcIjHs26NIf6O54GH45RjivRKeR23U/w2tJsjUfA7i3+YKm3a5S9WovHVPUiQunKmnYl8qw0EwF0LxPT37dok+ymy+B9ycOc3AYJM= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0998542-8984-4c35-65bf-08d6a6044028 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:30:51.0276 (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-Transport-CrossTenantHeadersStamped: AM6PR04MB5592 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190311_023106_294973_7733DC2B X-CRM114-Status: GOOD ( 10.02 ) 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: "M.h. Lian" <minghuan.lian@nxp.com>, "Z.q. Hou" <zhiqiang.hou@nxp.com>, Xiaowei Bao <xiaowei.bao@nxp.com>, Mingkai Hu <mingkai.hu@nxp.com> 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 |
Series |
PCI: refactor Mobiveil driver and add PCIe Gen4 driver for NXP Layerscape SoCs
|
expand
|
diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c index b2cc9c097fc9..df71c11b4810 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -612,9 +612,8 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) */ /* config outbound translation window */ - program_ob_windows(pcie, pcie->ob_wins_configured, - pcie->ob_io_res->start, 0, CFG_WINDOW_TYPE, - resource_size(pcie->ob_io_res)); + program_ob_windows(pcie, WIN_NUM_0, pcie->ob_io_res->start, 0, + CFG_WINDOW_TYPE, resource_size(pcie->ob_io_res)); /* memory inbound translation window */ program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE);