Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp926073imc; Mon, 11 Mar 2019 02:33:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAH70BI9xCypxoptCpli9N2PkYD6DcMRcpGZAfBh1zUpOp4bGiMZqQe9G6qNYkMi+zwtIR X-Received: by 2002:a62:1981:: with SMTP id 123mr32015134pfz.69.1552296837485; Mon, 11 Mar 2019 02:33:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552296837; cv=none; d=google.com; s=arc-20160816; b=X6juJVpLeNDDJkOLKgzST+4EIAKT3GjwpbhgFPPliniXXPSCdrNzq1IjPWtQ9YdchT yUPLm6TQgVnJy8Woe+Nr+fdxKj2+GjYITEmu1kNCLo7tbS9ivQtdPIjpbztFwHICxNX6 dt/tNUo51i23qI92OUaIMHakHknSFtb1Hjm4wazqVUdHbp3BH9IcR+w6h9VlsGLMEtFC jyvAxgUKAjPwQ+K6HqvpzzUoTdJAJVi5Cr1+O+3jxCGYyUU+QxB5ukeDtMR8vebczYQU Pl7I1nYZU5C2mH6VpknZPivbl6lpRVP2TQ+CSSE9SkvidTekg7e+gUMh9uaYGgapv2RL m5Qw== 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=4BMcqpDgTrc8M2YPv+PL29hYMDyvskZ4hrkMnMjLAqE=; b=yqWJAA6IlVpwKZ8Ac1IqX+i2ZxQkFgI5bAlt9z+4IH+zKJeidBKsjrnCmCaRkLVEap aEi14pQ7weH+FiGYWIfrwi/UA/IDphViREb/o8sebPHwN8wFdY+iHz7DFN5u/wqA+zLy wJBX9AdUO53EnOCBJ11xGrFCA0gVur2cWVW+aGRV+NhR6vloluGUn8jRisQIxf8lFvqV daOx1/s2AL+yyLSfR6lkGwVb/4Pt5P7zn5EWuHOUckvoqtblYiCVVic7/mMswZsbjKMJ ohsvhjsyySUPiPZBIBwA2ZrLX4MpFcCPTaitEFi5Bdck6flG54NFl6BlKZMr3rruaheO LX4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=YMsp2PGj; 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 q13si4516538pgv.157.2019.03.11.02.33.41; Mon, 11 Mar 2019 02:33:57 -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=YMsp2PGj; 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 S1727386AbfCKJcU (ORCPT + 99 others); Mon, 11 Mar 2019 05:32:20 -0400 Received: from mail-eopbgr80085.outbound.protection.outlook.com ([40.107.8.85]:48938 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727260AbfCKJcR (ORCPT ); Mon, 11 Mar 2019 05:32:17 -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=4BMcqpDgTrc8M2YPv+PL29hYMDyvskZ4hrkMnMjLAqE=; b=YMsp2PGjsP1kO+lD7OpZcsjeBpGkLywXpme/k9S75A5KbaujfNNWynXdFI3g9yGkBEbQ4w3pY23FuU1Osi5L5J7sjSk8BVYv9VwC5X2X5c+KtQ3ktjlaJ02CU5UR6ObT7XV+UG4bZVrBIB9M7RAh1CHf+fJoPBHYK+AxJozwJuI= 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:31:48 +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:31:48 +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 14/28] PCI: mobiveil: initialize Primary/Secondary/Subordinate bus number Thread-Topic: [PATCHv4 14/28] PCI: mobiveil: initialize Primary/Secondary/Subordinate bus number Thread-Index: AQHU1+1AtGOoAU+YtEiiEyC+O3ktCA== Date: Mon, 11 Mar 2019 09:31:48 +0000 Message-ID: <20190311093130.7209-15-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: 6414e1d7-6e2f-4080-8d60-08d6a6046260 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:2nyWhzU/u3C9d3uUunmmxohN6ssX76Bta/GZzl4?= =?iso-8859-1?Q?2LdEThMKC44fQ82xbBPEPM8wwaI/yXhX/lrNbyqe5Pqt0poN+/yA8ZCQRm?= =?iso-8859-1?Q?goExoSngWJfIiwX+iNvRQCpRiW8az370thxqy0X8p0abt5Hc77Fz0aICrD?= =?iso-8859-1?Q?GPnjVudQH07OISyFSXFM7yuJS/9vOFv52nVw2dLTMGwI5q8/9GUqXtPSkX?= =?iso-8859-1?Q?MTAoISn4PSSty700UU45P7Fb6XMKbQpqaxTcZ6DN1SwSVdA97ICon1252/?= =?iso-8859-1?Q?39qScU/p08h43/75pjBUr6MXtv0ZDjDJ8KRMqnD8DDrBM5N7JWLdUoo0gl?= =?iso-8859-1?Q?OFAOdPbi5uLykSYzVraWO6PUfYj5yA8iLwGGaMYUW0OPxLjU05GV1wmM8q?= =?iso-8859-1?Q?QnQqtEgLckg51G26FGT90kz/eI0Qg/N3ENXUpOXhGfl9SdrlNM/YuJTIgD?= =?iso-8859-1?Q?PuObUwg/Wmzxz71Owg6AOM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?Q?2RXP3u+I=3D?= x-microsoft-antispam-prvs: 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)(4744005)(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: ZOG5AiK+viOkVXE2H2LgmFb1AB3q/Hdn5Y8vJL2fFc7O+UqiFJbUnxvqxdsx4+uE0FBK25pRnq2LmoNi0RoNpHnXScbwLP9DbdCDYuTnPcC40Z9wBdRK6TblG5nz9IXPSBX8dcsLMbkhzv9RkDeXyozcd2E0TLl68g+2jmyDbaB6PT7mkiomBE+rNEck7yl9/LhkGZ+NqRg9DPkXL8tQbKi8IgQBtIkY0xWWA8onvDW1MuTkiPzubu9h5j00ZWJHcUbD5bdfB3SQbM/tgH0IykjjNgxnkD37sUDiVNp19EpMg1u7qwuOU3YnUAKYt1XNo/GsFzy4LCAi0Q9GLOG7Tph55W2p4R4yxxel+E7e3632eeYeio3t/AciG9OfGHjkVPQSdM3u/VXK1X1trk3sqIyDoxW4qLmBDvKoXpBsfDg= 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: 6414e1d7-6e2f-4080-8d60-08d6a6046260 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:31:48.4531 (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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hou Zhiqiang The reset value is all zero, so set a workable value for Primary, Secondary and Subordinate bus numbers. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V4: - no change drivers/pci/controller/pcie-mobiveil.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controlle= r/pcie-mobiveil.c index db7ecb021c63..9210165fe8c0 100644 --- a/drivers/pci/controller/pcie-mobiveil.c +++ b/drivers/pci/controller/pcie-mobiveil.c @@ -582,6 +582,12 @@ static int mobiveil_host_init(struct mobiveil_pcie *pc= ie) u32 value, pab_ctrl, type; struct resource_entry *win; =20 + /* setup bus numbers */ + value =3D csr_readl(pcie, PCI_PRIMARY_BUS); + value &=3D 0xff000000; + value |=3D 0x00ff0100; + csr_writel(pcie, value, PCI_PRIMARY_BUS); + /* * program Bus Master Enable Bit in Command Register in PAB Config * Space --=20 2.17.1