Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp925622imc; Mon, 11 Mar 2019 02:33:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzlSNbXpyWDQRlVLmtHpFjbHAJIILSI1JYQBhmQavicgRbaJS4ytbMY/kQYCepw6F2S66gx X-Received: by 2002:a65:48c1:: with SMTP id o1mr7198220pgs.94.1552296796528; Mon, 11 Mar 2019 02:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552296796; cv=none; d=google.com; s=arc-20160816; b=fyUi7TgtMzi2IFtnxwNh6zLLt9BxyPrpoWKF5fyOOo6PbE0ssJD1W5ZuqaWIz6Pd+f W50i5erdRWThYTFWCGv6/KVdKmp0Zp2kPoJPA/0KfvokpsgqgVhpFt8+7ilgpXKZN44z AUJyi9oECzPPaWAkP9qo32nFZfp6WfSrMhXk+a+bW5tzE4s0TfBZuFW27ndUach1tdZ8 B0f5kQWxFHcB2HYjk+Q6smW1W84ii2F/rrfeHw9z9CBR3CvavWRK4kE7ZxgWeTOeYi5f KNcuK6uKn+nj8oV7474mV7CZnzeTF2DyWFisUEjUeduEKpE54+PkYHXinmgW08IxZJLg NUeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=iRVbxaOVpCHN4G6WjFD5HlukrFig/GTSuHoq4pwU7DA=; b=kHv6omMuo3s00zIUvCCK6PG8I9zqcTms5ln8nVx6tXoE0ZedpBosIlcmZ5ydX6NEUW RBktegSvInVQpAKRBxtyR9mFR+Tt4XexoO8V9umCc2UtkaO4nDaKfZ7IQZwxADAVB2Bm 5b8yn2ZIqNA6/VJeJASICsxazfoMVkVvfe1deqVsXhzBhxmtwF3PsDprnT5xdbxAmnIl 7XJg1wIEcUz6BGEHin2FWmAxhnoBx+xjdflFWUaBbtzYwDp1ZBYW13vDBo9I7TMwdj3z JT3U1BgyFmZG9YjpLHWNiLJ2pt6S2ledQbsjsOlt7qDyVGM+iGBaFe8b0k9LJRcv3Zuv 0Pvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=iWQENo4t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i39si5105671plb.210.2019.03.11.02.33.00; Mon, 11 Mar 2019 02:33:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=iWQENo4t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727270AbfCKJaz (ORCPT + 99 others); Mon, 11 Mar 2019 05:30:55 -0400 Received: from mail-eopbgr130043.outbound.protection.outlook.com ([40.107.13.43]:6723 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727103AbfCKJaz (ORCPT ); Mon, 11 Mar 2019 05:30:55 -0400 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" To: "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "bhelgaas@google.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "l.subrahmanya@mobiveil.co.in" , "shawnguo@kernel.org" , Leo Li , "lorenzo.pieralisi@arm.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" CC: Mingkai Hu , "M.h. Lian" , Xiaowei Bao , "Z.q. Hou" 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+/gV7NlZDoYDAA/GZf+HSzDvqzauj27MWmk0vT1/JD52?= =?iso-8859-1?Q?sfRuX8WlkF08uxm06Db0D5kzyKKb2+QbKtBf/o7HZ4vm+LSdOWixiMnJ7G?= =?iso-8859-1?Q?ovRKEdht8aN7IiYtUsxkUHF16sfX9tgAmZ4rsZR8B1FqY6CAP56EobfSpn?= =?iso-8859-1?Q?f5zWcxQmrhhRy8xyVmpPLX9+OhEw9GgtNlxDPlAJNuMgl5WfLIpdrrNA1q?= =?iso-8859-1?Q?MSFOXVnYkyqRRlQZunsJ60ZNGFK+jgI4t/JgTfa8yDTMjYb66+ad5ipesb?= =?iso-8859-1?Q?Z36zmko/kUpZE7yzXIz9gQea/GAbw4PtDIRCvQItdJCsAnneVIAS1yxNSU?= =?iso-8859-1?Q?X7FxfZ9U47YzOViqYGMw6pmehJQiK1Tmen0OIOfSWqDYJJKdiOGLdKAX97?= =?iso-8859-1?Q?3Q/qGDq/Pm2m5RqrlLTHJ88wHeyj7xmY82iY3Fx0Xyd40eO8i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oft-antispam-prvs: 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= 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: 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hou Zhiqiang As the .map_bus() use the WIN_NUM_0 for CFG transactions, it's better passing WIN_NUM_0 explicitly when initialize the CFG outbound window. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V4: - no change drivers/pci/controller/pcie-mobiveil.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controlle= r/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 *pci= e) */ =20 /* 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)); =20 /* memory inbound translation window */ program_ib_windows(pcie, WIN_NUM_1, 0, MEM_WINDOW_TYPE, IB_WIN_SIZE); --=20 2.17.1