Message ID | 20190311093130.7209-6-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 73F9F17DF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:31:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A2C928E7B for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:31:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5833328E89; Mon, 11 Mar 2019 09:31:24 +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 02DA628E98 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:31:23 +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=NESceFEdWKWEz4pdiVJaiPBGwuLO+l4zuKKgxMP4Yfg=; b=BSHF+ml3L8BpUf tUtw2N0BKnfMa2I1lb6qaEAr39bkAOwGwvMKsnDVX4ZESVMiN+NtG48Gn5+BtxJeagwhvFoe5gx6M JF5i5visQXhP2tSdfc7d/NnQ47Tpw7oZgu0lHAg8MJBvVPAZYHpEqAO/cW2nBLiHPvtrUF51Dhey2 HNCqpk2IWCIAQD2YaQ9gPDRWJ096ejtFq9hjdipegycMuIrWWu5jGba0urOp95GQvDlZ3AHV9l66W +4Dtlysz89jCxAjZECsCVZtuUd5+N2eGC/17GPrA7KL0tfCb6yCECe2AA5t2Sv24R7PPjK6u5EiMk hLTRBB0nomJOJ0tEsgtA==; 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 1h3HH9-0001Gv-UE; Mon, 11 Mar 2019 09:31:15 +0000 Received: from mail-eopbgr70049.outbound.protection.outlook.com ([40.107.7.49] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3HGY-0000Rr-Ev for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 09:31:05 +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=uJ1q3GbR4n8QaufXG6OpX4LbKDQTbtgJA7yjeAiVFB4=; b=hFcXS1l5UXKZw5VZ1tCH5EWpLe5mrfUqoBnXM9rUi0pQ7iNOl/vuL7r6eOx9fmf+YFf/+eiaSgAOKroTamnmSCEH/Ur+ck9J2ExCoSBEsk9cX83PuT6cKnhnGzV70vwK+kEEOzUSu2NLQszmUv9+vL+yuNBMJX3HKjyd7Gm/+Qs= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB6566.eurprd04.prod.outlook.com (20.179.246.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.16; Mon, 11 Mar 2019 09:30:35 +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:35 +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 05/28] PCI: mobiveil: correct PCI base address in MEM/IO outbound windows Thread-Topic: [PATCHv4 05/28] PCI: mobiveil: correct PCI base address in MEM/IO outbound windows Thread-Index: AQHU1+0UhvVjXnV0a0msw3SU+FqU/Q== Date: Mon, 11 Mar 2019 09:30:35 +0000 Message-ID: <20190311093130.7209-6-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) 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-correlation-id: 705a598e-b6e5-4c70-947b-08d6a60436bf 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:AM6PR04MB6566; x-ms-traffictypediagnostic: AM6PR04MB6566: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM6PR04MB6566; 23:2t+pDpXVcOPimXRfzj2wvoa6X60OD7wCdl/TDj+?= =?iso-8859-1?q?33bAqIdUP34woQ1?= =?iso-8859-1?q?vYQUNLbfZN6/uLAKk5Jom0x0hnw4n/6O4m/B4oufs+FY3g3JcGeCT6gI+y80?= =?iso-8859-1?q?dQtO013MbG6egkNOP9xNTedJtlXGn5Dc2JjsNn/BQwTgJgZcFphTe8TMIxpP?= =?iso-8859-1?q?y0R8vaAmGffw2P7HTduTTDwv58QnbLdKLCCswiDSpCUR42W1ueCsVXjw1VHe?= =?iso-8859-1?q?uU4ts/I+nDijLDgZ11H7CV3dpq+f970F46OU9yXWm20LSMbgFb6asUnSkBuQ?= =?iso-8859-1?q?IbiF17IKvkkTOlwKMzeDVRChsnWk3CGt70MIHxvPEjycxTLNEO96/SJgx002?= =?iso-8859-1?q?rPlKTMLmcJv21TejO4wbRRkGNs1z+dXUEBcOCRog/q1j/VKZ/YTp6Te7Lf1Q?= =?iso-8859-1?q?SE/QNb46HOcOAQUpSViReQzvTxTPV6PqB+b/3oH8JI1dLC8P5IlD5Dvv3AEP?= =?iso-8859-1?q?lnzQ3JgV+mEo2JvCtTxYSMMAgm4919Q74Bn3CvfLgDs56UwsBhSbl58xXPhk?= =?iso-8859-1?q?4F5SkqFjCqfx16n+2e3FfelahpZUZDF5mHHd6z0WeBnc86ES/5xkBZ0wbw5R?= =?iso-8859-1?q?sv7Io8RP9dQ2o5MiekSDnEoHxa7lemIoBFfv/TmGI34+cHYH9EodS5SKMN/c?= =?iso-8859-1?q?FXDpMiUNSFcemosFRsDVO50+k/1fRynn3w6kFIsWs5U7Bi/7vw7FK1iLATrj?= =?iso-8859-1?q?SR9aggrh0NG1T01Q46oZZil6tu9udbI8bHQ03szkDIZ8pSSe4yraN72hMXDl?= =?iso-8859-1?q?4FMF+OOiKfa3yNapEtNQpy2DYXxEuLrvYWs4MHKWhPMo10Tgr1VFX5x1ylTw?= =?iso-8859-1?q?qoTzA/wfQ0AVzeJ55lVDE84UbKFQEUVa/JpK3lNFIrgyj8My1dUL8oqgU/+U?= =?iso-8859-1?q?w6I3CGN+RIyxftfEVcdATG3XoTcOR0q+o4tdBgiLw7vziOYdTLn2h/Y4wsde?= =?iso-8859-1?q?7/lm3A0yC6JMYeWs/XM5ABVdRjAvtO6BS0odyjrok9IaKG1vm98giQ3pb8zK?= =?iso-8859-1?q?mVo8NU/DebDQuSRgygjBs8yUaSIEalmxrX7o5ZLiLoaQOVc915/pQwDLduQn?= =?iso-8859-1?q?Hc8Iok19BHqKOaf13aqjga/g7hSsdBqcExZDc5r2sx1Hgzv/7g6+IUG5fESd?= =?iso-8859-1?q?h1e4W0EL+hi4JUZg1CrT7udqx0z5eEhMTEUcyzwIONgHWun9/xhg5GU15YCf?= =?iso-8859-1?q?SbxkuiJN5rj+i1SjLu62fIpxIqkB85S92fiiZej5GLIrWyevb/OuEfpky9qr?= =?iso-8859-1?q?btfI1qbmnE4U+ZzUOxA4KQ5y+w374n7kuBlSe75OpKvqxdTQ=3D=3D?= x-microsoft-antispam-prvs: <AM6PR04MB6566FF6B99521A1AD318CCE084480@AM6PR04MB6566.eurprd04.prod.outlook.com> x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(39860400002)(346002)(376002)(136003)(199004)(189003)(6436002)(478600001)(25786009)(99286004)(11346002)(2616005)(476003)(76176011)(3846002)(6116002)(81166006)(81156014)(486006)(71190400001)(71200400001)(2906002)(8676002)(2201001)(5660300002)(97736004)(6486002)(446003)(7416002)(2501003)(86362001)(256004)(14454004)(316002)(68736007)(26005)(8936002)(6512007)(53936002)(1076003)(66066001)(386003)(54906003)(50226002)(110136005)(102836004)(6506007)(36756003)(105586002)(4326008)(106356001)(186003)(305945005)(52116002)(7736002)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB6566; 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) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: GDIM1JN2MSBNmOQKseEJjhA/zN+Zw5I026PRKIRIu4HL8aXu9tGMDtA2BjUyJn48OAfC05aivYxHvQ5nFee1r/HOoY6vhRPx8Y4IhzOtxsULEG/2d7y0P0Ous4wJSRzrHYO3BtdZIP34uheFMyPCiuB9SNs7JNtt1oHn7YrB7llQ/aFdT0qOraBOVb5pHBVZq6uZmR0zxSWjMGYhTrRW/UqJyt7Xyt6ZF5MALRtCqpqg6eih+A7necKYxjIzKZ8E44OJZAMbi8TWNI+uG+9RTmLGDzyn6ndrotPoc7vUmVkwwJRpPeR8cAZRWlsqPmciBML1lIb+RmJe2mpZlh0IYfC7Q+9kWlRiit2dvH7UTVbPzS1n8sy4Nz4HtwCpc3S5UhbbaHXRcgj9AdFkoo97KQdM5AAZF5QVyeK0gKV2BMo= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 705a598e-b6e5-4c70-947b-08d6a60436bf X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:30:35.2692 (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: AM6PR04MB6566 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190311_023038_984154_FA47D21C X-CRM114-Status: GOOD ( 10.79 ) 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 a0dd337c6214..8ff873023b5f 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -630,8 +630,9 @@ static int mobiveil_host_init(struct mobiveil_pcie *pcie) /* configure outbound translation window */ program_ob_windows(pcie, pcie->ob_wins_configured, - win->res->start, 0, type, - resource_size(win->res)); + win->res->start, + win->res->start - win->offset, + type, resource_size(win->res)); } /* setup MSI hardware registers */