Message ID | 20190311093130.7209-19-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 49A1417DF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:33:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3195828E39 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:33:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24E2828E81; Mon, 11 Mar 2019 09:33:13 +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 C13C628E3A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:33:12 +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=zePAQNXJMHTL0/RLUd+XKz3bPKquuy2aY4d8l1qy4ZI=; b=i3O8eu76Q9Wsfe mrox4ttTtpzZfyYeMQWABc77rJKfsethO8LSntwSxHBYb7X7bl01e5iTeIMHHeEQEz+p8vJXFkd+S TqIJivmLGneKeDm8tSCj1kafLwqatA+IIGyPPCtv4lh68/e8XF6s56uEd+5Pt0woprCzUz5K47+zh mlv4GDgVg8tJRL+BlXeIvTf+PzjThxcyk8ykWj/81Fd74hQuNk4bgrbxEkwYK0qz+lqAQ5CFyIFMK q+7d3Bnk3yirozeV0+llilAKk2cJ/aLAi+pqJQfBKzND6kFgGcJRhf2ejAftixJozFVFnZP+SyRn5 Ete0hPurNF1ye3BDuq5w==; 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 1h3HIz-0003bS-CV; Mon, 11 Mar 2019 09:33:09 +0000 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h3HII-0002hm-9p for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 09:32:49 +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=IA7rcNmSSO5v+RL22C14TRn1KSNSUYVtFa/zfBl5cVU=; b=jL2mSp/jjJlaws/r44tkyT9pqv41pBm2tv/iFJIt0gzzv0JSFVsi01wthBtxFaE0o5gwiK2HnvGCw+Wfe9SI+d2LIxbhoMR29uZXTaTwpPbLjVEkfzDezooGl/eUVfZpIg9I013+4hWm0iIkNRZqCrcPtzKnYDVf0Z7mZhthu1E= Received: from AM6PR04MB5781.eurprd04.prod.outlook.com (20.179.3.19) by AM6PR04MB4168.eurprd04.prod.outlook.com (52.135.168.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.20; Mon, 11 Mar 2019 09:32:22 +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:32:22 +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 18/28] PCI: mobiveil: add link up condition check Thread-Topic: [PATCHv4 18/28] PCI: mobiveil: add link up condition check Thread-Index: AQHU1+1UyHtNENDYwUWe6uvqq5FW7w== Date: Mon, 11 Mar 2019 09:32:22 +0000 Message-ID: <20190311093130.7209-19-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: 919d5b8d-0311-4904-f456-08d6a604742f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4168; x-ms-traffictypediagnostic: AM6PR04MB4168: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM6PR04MB4168; 23:7+/6dGO6dxmzi4X2oaUBWeHDxZ2aJuAL0pthg5M?= =?iso-8859-1?q?r6tDjQLZK/wEtTp?= =?iso-8859-1?q?toTdGFyxbqTe50TZpqR3sGdfy420vYgbyoiev20Ww3X58S4aI2qgqZB2Fpqu?= =?iso-8859-1?q?0dMK8FGVdLRvYZj2yiP7acxdEyP2zWJLs/J3c2+xCDCvw7Ibhn4oISklEY3W?= =?iso-8859-1?q?W7RVViKa/DzCpCSEzQrb5bmMasQrTL7FVqGYLqEllk3rhavJsdbY8RVOVZcQ?= =?iso-8859-1?q?BFyf0VfGQZGBaP6qtwW2Q6uYUB3CzRYxL8gXMrY0pMj6N6LQhmVfcYWOzOIs?= =?iso-8859-1?q?Sw1QsDEelhvSPucW9bLKknbyIYwa65udc7LfXc3ZJPwb9ipDI7QkT0Cx7iKo?= =?iso-8859-1?q?xp6MpUSXyuoiIcVntRsQJQPeBdhP7WLcP7I7TN5y/9rNB/9Mjcjxz7I7lsKT?= =?iso-8859-1?q?D6HjNQ5eIVeiwI5sm8SyUG+fQ9RArDi/xtG38iPfD1Zi0j/Am56caS3JkQoq?= =?iso-8859-1?q?aazKLOeBV0NM6MpU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MB4168578A3D5ECBA244BE205A84480@AM6PR04MB4168.eurprd04.prod.outlook.com> x-forefront-prvs: 09730BD177 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(376002)(366004)(346002)(189003)(199004)(106356001)(476003)(446003)(6512007)(105586002)(7736002)(486006)(11346002)(305945005)(256004)(6486002)(2906002)(25786009)(54906003)(6116002)(110136005)(3846002)(71200400001)(2616005)(2201001)(86362001)(4326008)(71190400001)(68736007)(102836004)(5660300002)(81156014)(36756003)(4744005)(2501003)(7416002)(6506007)(386003)(6436002)(97736004)(53936002)(316002)(186003)(26005)(76176011)(14454004)(8676002)(8936002)(52116002)(478600001)(1076003)(99286004)(50226002)(66066001)(81166006)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4168; H:AM6PR04MB5781.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: NUDGBw78AjQT5PDEUP9QVkWmdRWLWUnkPe61OyJUu+KqnUk9iYnWDop5aD3DqU+hPfsPtG/ew90SOl2l9/m5SfQOx109hk2OUgJaiXaaSCRQcHxeu8efQqhYDGuLZb1bm3zNttJy/znn486P3nHkAJntujr/nyKeiZnGkfE1j5QrvfsCgABYVUxTaPmFPusM4AdzMUR+YvLb+NPHIYPdMqInhxMnkT73iuy36n5nRKlgah+9ICqbkiuwkU4tZvooSFNrfEwojM9spfy7FVpwLsWIYdkV56hzsJJTXYj3kyh6e5wDepN9wL9lAGehJNhify4DDgB5p1Ny33orc+5MgeAvS5DeQeH+UyAwmYMKkNXg9u+v87dVCjPbS05bLZoQO3FyjSNkWcXHYbNPa7QPauMbTqbsh2q6W0gPVpo2bQY= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 919d5b8d-0311-4904-f456-08d6a604742f X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:32:22.8509 (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: AM6PR04MB4168 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190311_023227_159862_605315E1 X-CRM114-Status: GOOD ( 10.36 ) 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/mobiveil/pcie-mobiveil-host.c b/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c index 74a14f05115e..1ae82e790562 100644 --- a/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c +++ b/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c @@ -29,6 +29,10 @@ static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) { struct mobiveil_pcie *pcie = bus->sysdata; + /* If there is no link, then there is no device */ + if (bus->number > pcie->rp.root_bus_nr && !mobiveil_pcie_link_up(pcie)) + return false; + /* Only one device down on each root port */ if ((bus->number == pcie->rp.root_bus_nr) && (devfn > 0)) return false;