From patchwork Tue Jul 24 16:14:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10542405 Return-Path: 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 3D92814E2 for ; Tue, 24 Jul 2018 16:15:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A0A228CCF for ; Tue, 24 Jul 2018 16:15:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DED528DA2; Tue, 24 Jul 2018 16:15:51 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI 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 BC1DE28CCF for ; Tue, 24 Jul 2018 16:15:50 +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:References:In-Reply-To: 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=A6jW9cSxK8BEwnSzfgFhT7OsvoKiX83uMXIaLl5xeXA=; b=VpDQx5eSSwfdip WQ2rfjIHENFApT8EqO2uCfV6lDyz5G5RfyHSL2vRisnTjqj08WdIYmXEIvfH6SgwckIPpwxTxCcU9 IN0yRn3+rdkD2DF+wBSUiPtOCN7gK43k2s5jaKcFeqFBovkyQ8uNCdyxu87jwB1rHeLH7jkkDlsh6 5XJm5N5SdHYgC8ywNoqxjygRtxaaw7j1mf9PhREUm1tES6oEdCzKxYimWEeps76t0DwPGBKSRQ/g+ Jl5VT7KX5UEyty9uSxtG/NbkO5l5CGryGtTHq2o26sHmhD4SR2tWv3GL0eZJ0FepPzU9sSW2TDWLV 3v418gTnoAkwjpHZjEtw==; 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 1fhzyV-0003jB-9J; Tue, 24 Jul 2018 16:15:47 +0000 Received: from mail-eopbgr80085.outbound.protection.outlook.com ([40.107.8.85] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhzyE-0002HO-OJ for linux-arm-kernel@lists.infradead.org; Tue, 24 Jul 2018 16:15:35 +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=jCE/pgSGqwU/Pz6lPxMsePMHQhWoyjIZoicl5Xr2+eo=; b=PTsfa6Ieory4NCpASZ9w1UvieEgdBQlImkMj07mJnruYOGUU9+6JpbthfjyTPIw3OTH2U9MOu3PHe1w2w2083IrtPk9aW0D6giZKDqHitPL5Qsz2FHw5DAvL/fklyS1t0IAAuSrAIW710iqSk862NG19nTnlpSvO0tNyZ0fsF7k= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by AM0PR04MB4290.eurprd04.prod.outlook.com (2603:10a6:208:67::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Tue, 24 Jul 2018 16:15:12 +0000 From: Leonard Crestez To: Lucas Stach , Andrey Smirnov , Richard Zhu , Shawn Guo Subject: [PATCH v3 1/2] Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping" Date: Tue, 24 Jul 2018 19:14:19 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: AM3PR05CA0137.eurprd05.prod.outlook.com (2603:10a6:207:3::15) To AM0PR04MB4290.eurprd04.prod.outlook.com (2603:10a6:208:67::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a9eefc66-7544-43b7-8e1e-08d5f180a2de X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600073)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4290; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4290; 3:NM5Oun9ur76Ejl92/Bl0xl7RzsyMMhUqfBg1cz1fxXIUgphBufxFWMMhOXaizKJZq0ELoVcG4Acb15kx6rpMj28l6+yBxFICOXC2/C4PQRmvWkHuEjqUXRqe+Lqr6xJwM+pRTgzoRqZuk2U24qim7oxiJdL0jyyWJ7EM6bDSOOPcb+X0u677F3SSmc8zykpbORH4Nx1eSwkaF1rb23+iy9myiCnp/HHtuldOJAFI7Ud6m802hdEat+sSl+ikSPRp; 25:rBeZ8zW3GL+Xi9b5jO4bfG8oa2W4SqAPJQF7f54hv5Zx5GCSyTXvC3I34yZb0t52GkRA/P+J3HrSA79VqDLGaabIGfOzBlyHvIOjdW2F4I4uqd4Rb4e3zVC/54444GqFzQuGgjupFSIxyE6FOr7M2fgcTvWJkLzl5sF+cdei2E4ZvUhXLAb3m9YlZtmVXQ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Xuh2mMfb/mVrmpd7QVB4f0vSRaPCeRieE/9ii/PO1oHoKedTKRDPWcN27Z4H8ffeM0bIh4RuXkYscsE4Rk2vgPsY8iF5WhHrkC4Jy8ThSB0ysO9+H6SgKMCuph+ulQgd013yyRz1cyJBeLwYJhzE+lZx2EW8dwbk75syhhsW3Vv06O94fVvOnqwkjP9b2W7wssFPeBl0DaXi4VWSM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:AM0PR04MB4290; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4290; X-Forefront-PRVS: 0743E8D0A6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(376002)(366004)(39860400002)(346002)(136003)(189003)(199004)(446003)(44832011)(86362001)(11346002)(54906003)(81156014)(50226002)(47776003)(97736004)(81166006)(2906002)(110136005)(8676002)(575784001)(316002)(16586007)(4326008)(16526019)(8936002)(25786009)(305945005)(486006)(66066001)(39060400002)(2616005)(186003)(6506007)(386003)(6116002)(3846002)(7416002)(118296001)(68736007)(53936002)(76176011)(476003)(7736002)(26005)(52116002)(6512007)(51416003)(106356001)(36756003)(5660300001)(105586002)(50466002)(956004)(6486002)(478600001)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4290; H:localhost.localdomain; 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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4290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w6zC1sZwpcegS22LVcW21LKCNkARpNy7pHI+hpgyCUekYBjR21y8/fCiB8UhuSmQ==; 5:/pl3RDnr6lEzTxzH/wuW8HejtrI/AryB3tIwpscu0BY0755MIQFAPtvD9d5Ol1B9MaI2ZAt9Ua/seBSRTxrkodww8CzAt0iYGB+33gSlyQYYURWQZILLdcfuAQd+arwOEY1Mxmy0A822f9CuUU4O05vUfivdIsUnxnsCQ6gYxAk=; 7:20mZS+A2XnSKWMponObzHyPzGzxQ+JDpDDSG9lfNb1fQhFe0PZRgBWjRibAwrQ4F0P9LCX1Y1gXfJG008RSj+W15ggshpSni8mIXwviAPLIGpIGG5DQz6GcbT5anQWlnEIpfK/V6vk4bCDfN9AxNKcYatEVpxY6jzOLOqokDmat1y+8y7c97brtPLAqpekQNwMGhcJDoROjm3jx3LNXPVnJ71CEJxNYD9PK3ilE1l7OMSTPXzNRgPfLbqWggcu1G SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 16:15:12.5426 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9eefc66-7544-43b7-8e1e-08d5f180a2de X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4290 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180724_091530_814843_95159A13 X-CRM114-Status: GOOD ( 11.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dong Aisheng , Joao Pinto , kernel@pengutronix.de, Anson Huang , Jingoo Han , linux-kernel@vger.kernel.org, Fabio Estevam , Lorenzo Pieralisi , linux-imx@nxp.com, Philipp Zabel , linux-pci@vger.kernel.org, Bjorn Helgaas , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This reverts commit 1c86c9dd82f859b474474a7fee0d5195da2c9c1d. That commit followed the reference manual but unfortunately the imx7d manual is incorrect. Tested with ath9k pcie card and confirmed internally. Signed-off-by: Leonard Crestez Acked-by: Lucas Stach --- arch/arm/boot/dts/imx7d.dtsi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index 7cbc2ffa4b3a..7234e8330a57 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -124,14 +124,18 @@ num-lanes = <1>; interrupts = ; interrupt-names = "msi"; #interrupt-cells = <1>; interrupt-map-mask = <0 0 0 0x7>; - interrupt-map = <0 0 0 1 &intc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 2 &intc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 3 &intc GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, - <0 0 0 4 &intc GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>; + /* + * Reference manual lists pci irqs incorrectly + * Real hardware ordering is same as imx6: D+MSI, C, B, A + */ + interrupt-map = <0 0 0 1 &intc GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 2 &intc GIC_SPI 124 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 3 &intc GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>, + <0 0 0 4 &intc GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX7D_PCIE_CTRL_ROOT_CLK>, <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>, <&clks IMX7D_PCIE_PHY_ROOT_CLK>; clock-names = "pcie", "pcie_bus", "pcie_phy"; assigned-clocks = <&clks IMX7D_PCIE_CTRL_ROOT_SRC>,