Message ID | 20190311093130.7209-18-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 12ACB139A for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:33:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED8F028E73 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:33:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E115228E7E; Mon, 11 Mar 2019 09:33:30 +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 7852428E73 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 11 Mar 2019 09:33:30 +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=frAm/utOg7Sc7i9f+bEN7067EJKx+lX4VIHdDpSP9uI=; b=ih3tQ7ZY5+9pQk NQxEJfCxbnbrdsEbyG08Uwj+aVsqT1TM9JBnb/rbCbqGW7wmRqbF9L7QfLdFiVoS9R1dVWPIdC1Ia FS6p3Tl5QFKBP0BOY/Sz/LBw5cTRpNgBd9OUYE/7sjonvez5bat/6Xrb03dJfCDUOkGwBGuTzrDDG tMHJD1VPRHrUNaUDwMhtVWKesIsz2UdYdA682QeMC1WgeMynk5v5eIDOXb1fhf8+ueVMXOJglwYmo HoXSWDd24Ae9in2AkE3kqsQ/bZSGlA+JQG17kepsNyapxI7eyElZCIpcqAqbsBCV9O+pmRP0urVkf i+kL6upeQTiUUX7KKxlA==; 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 1h3HJD-0003v8-I0; Mon, 11 Mar 2019 09:33:23 +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 1h3HId-0000Rr-JC for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2019 09:33:20 +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=nGt2kptfSYFWIMpJrzSgidPyvIMtRAfU6GlQDpaCshM=; b=gJ8eeGrdyJAJyx/mCGBjC9dccsRytNaMtAbdkHqjKFl7RasCQjqcjJrL+3r8Dc/mUIPD8ifQDWDVBbf8zTF955M0tTLREu2xmOhl7iA1gyTjC8ksb3KSpAMSxb4K4yUA77p2kwkrS837ZMaTkdVWNZzRHD0U61GzfabD0aEZx6U= 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:32:11 +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:11 +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 17/28] PCI: mobiveil: fix the checking of valid device Thread-Topic: [PATCHv4 17/28] PCI: mobiveil: fix the checking of valid device Thread-Index: AQHU1+1NSbzhbwea50ueS7B7aR1vuw== Date: Mon, 11 Mar 2019 09:32:11 +0000 Message-ID: <20190311093130.7209-18-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: 3f696517-ce7a-432e-787e-08d6a604700b 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:9U+afKuykMiupYBandF6T1h7pl0VMCRlf7rCJBN?= =?iso-8859-1?q?MS3nt1MPc8pAE49?= =?iso-8859-1?q?dHHBCQgQ0F9CLmjhJP7CcEyjarsfTTr2P+igKJ2UDtx8ymn3i0O2HX5cty0h?= =?iso-8859-1?q?B+3UTxhKnyOHtZMEDTjKz5c7n3zCQCOEzsFIps+a0nOGPd0ZdEbt1l4VSDQm?= =?iso-8859-1?q?MOu9AmEhUOhIPqmbIUPbGo+41Be+aopHuo8OXlJhLlv1OLAgkapv8ysTy7de?= =?iso-8859-1?q?BcZT7MDX/O1xLrMS3Ef27jE5V78bXQn5uISWZwu5n/idEdFVfZiDHuuq6dL/?= =?iso-8859-1?q?i5pFpqQiTN4PPh1t5tCq3bJ+PXZXLxPF9TIYDyyD+hRZEJdkjfp7kReJ4RI3?= =?iso-8859-1?q?Qlrld4lMpR/lonMAr/tqbO76CqljiNyOlzOdKGQjwGkAkn8qsccRcUEELTZE?= =?iso-8859-1?q?zUQf/46pd7X8/lzJoW8Svixt1FBfoPRWsYiGsGs2neJN89FNA04ihzBhmTVx?= =?iso-8859-1?q?zJxTzDG5oCTlKC9czcPS96Mw9qqhyncCOLlau1fvrUPmqMV+daq3kXw4DOkq?= =?iso-8859-1?q?CNKn2xRPY3FixGjT3U7oAd17eaqGbl9UPfaVycwwTbhFVWRIHKqDP8Fzy83T?= =?iso-8859-1?q?BMJuSPvE+ZjHy1ahTOzKePNCtEhnuQdmQSSpwii0JLcPz+IDFp9HWAHH5BsY?= =?iso-8859-1?q?Zo1GlzzYa5Ko+Zi2n4Cgz6HLiAcU9g3nzMeJ6P/URKupoCLt4vTHL+kKIbD0?= =?iso-8859-1?q?S08zmxAzfensLT7w4+BfAVP5lWOfo+SatfNEZdaxDWUc2JdJZoztD+D0pZN/?= =?iso-8859-1?q?IbX2s8OMfjnHP39P8zJpuHdsjvQLuMX8F5vUhd/GYTzVQ8tvXRdBeDB9bLfN?= =?iso-8859-1?q?xRor7t7PZL9fCLK2vTq/bOwE05LS/2TJXCW5+HTqRqb9E0fi2KQsSPS4ElCD?= =?iso-8859-1?q?EqTJke2yaqaATl8vDhUIlva+t0ojBwxsj3y96+m6nxW23zLGAn3aM4XenTij?= =?iso-8859-1?q?7MUM81r1zyM/VezTet7nMBE3jEBTGvYPQT0pc+ADwETgI7YXW9gQ5r5qI+hb?= =?iso-8859-1?q?XaAWeKwCx6144qe3eL2KfhP80e6CqR82uheP1BE5T50Jqqi5jWxlppI2hphf?= =?iso-8859-1?q?uT4KGfE59TT7d7L+ZPxNOqyNgzEQif3ax6881bfi3k6HcpaS4QhLb/UiNiLj?= =?iso-8859-1?q?mPMTKf4DLLC6TavjiwjouqihovPaBs+0OazQeOcqXDfO57QDw//FrUtNu4VD?= =?iso-8859-1?q?jbwBAJdwFEdxdk2EIKXi9cejrUbaTKuV0KwKuxFZRURw+i6+ntZy5ooCbHL+?= =?iso-8859-1?q?PbtZlCzxGLsusLoDasxBoH7hyOwbOfp3rCGwQdW8+w/W0O+NGNltfKJQiBk3?= =?iso-8859-1?q?AZr3B+oLD39FuLVWnx8BfRnf8xgeYd?= x-microsoft-antispam-prvs: <AM6PR04MB65665C56E7862666EB35B75284480@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)(5024004)(14444005)(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: /mnwCYsHzTMw8NxRjkFUaQgpCyUtybhTXHm8aSiIjXrsZrw4xzhg2pe64sjrPWvSfsoz7cVXYPzK4bh/oS1RbDFhLVOglkm7hhYUpr6pjrjMpap5WmVgBkKU8MtIqzyEVbD+9to3o2y3rQtkBRXPsPzhn7dHv9YHUg2fnjEVoLyEYJwQrbs0edHnpEsPR5upqUxZ0ZWV3C+JNH9IGNq2KTmWQRJM7GW1dRzPj2augk7NVZSyyuBL7kB4mfaIRoNBxDPwFWuMWYVKFsinLkwhOReflc46F5EqPQTGAzwyGkLt9we4VtsSlRsDTjGFj/PuM/bg+gSzVRYlrXiDphTBFuYAqh+kn60agU6UvlGGtkiY3OfQcZIi8HStg88QNMdnkMhM+LqY9xSFmeHJ1C29FOJZydE14g0TYhOsLLCA/Zs= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f696517-ce7a-432e-787e-08d6a604700b X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Mar 2019 09:32:11.4167 (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_023248_164193_136FCEEF X-CRM114-Status: GOOD ( 12.07 ) 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 dc5324d94466..74a14f05115e 100644 --- a/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c +++ b/drivers/pci/controller/mobiveil/pcie-mobiveil-host.c @@ -37,7 +37,7 @@ static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn) * Do not read more than one device on the bus directly * attached to RC */ - if ((bus->primary == pcie->rp.root_bus_nr) && (devfn > 0)) + if ((bus->primary == pcie->rp.root_bus_nr) && (PCI_SLOT(devfn) > 0)) return false; return true;