From patchwork Tue Jul 24 16:14:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10542397 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 8432B14E2 for ; Tue, 24 Jul 2018 16:15:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 724EB289E5 for ; Tue, 24 Jul 2018 16:15:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6660D28CCF; Tue, 24 Jul 2018 16:15:20 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 499DF289E5 for ; Tue, 24 Jul 2018 16:15:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388333AbeGXRWa (ORCPT ); Tue, 24 Jul 2018 13:22:30 -0400 Received: from mail-eopbgr80070.outbound.protection.outlook.com ([40.107.8.70]:43936 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388321AbeGXRWa (ORCPT ); Tue, 24 Jul 2018 13:22:30 -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=FoUt8f+TUHDkVu2GWHL4FQQcFTQ1EecaFwjtPoKrIXo=; b=mkOFfSBl9cFhdiDEBbfySVlFB23ukREV/Wl0HRnCr2rAqxleKpN30vPMQ/eyperIOHd1pbE3Mto19LVR9GlnAwP7MryaOIWyvvZdE4I5yVRRVzthUuARPalYkifqh7AddCuespUuHQ/4NkU06XQxqKrmVnmnwACYAM0G6oJdLT0= 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:11 +0000 From: Leonard Crestez To: Lucas Stach , Andrey Smirnov , Richard Zhu , Shawn Guo Cc: Anson Huang , Philipp Zabel , Bjorn Helgaas , Jingoo Han , Joao Pinto , Lorenzo Pieralisi , Fabio Estevam , Dong Aisheng , linux-imx@nxp.com, kernel@pengutronix.de, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/2] PCI: imx: Initial imx7d pm support Date: Tue, 24 Jul 2018 19:14:18 +0300 Message-Id: X-Mailer: git-send-email 2.17.1 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: 16bd528d-1a98-451a-a909-08d5f180a237 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;A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IxmmlrG5KetgboYVMM4kl9pnt7TUxnqLS81b6mmTIhhTucJKgclniW5HO2EJwAtPy31qcklE8ySatsaar85BydbRSQ6ohE+HJJqeh6ZTWXrx5qJLgxnG1mSvKx3SLGULyQnP8S4O40v9OkIiKOfgrbqUvqVoiFNcbfJD211qpg5O9ejN7WAZ5g0x+CDXMAxkW7BMCqwr6jgp/QoJpaBPl2yMp01xQrZjOyNqRHvNba8CMuCCvjP5mCeydxZwpnF+2D7RWxCKfXeOAcbbgwyLQ0uyD7qUOOwAB5+hBI6k7vAbgQ2Yjs+rHndtcJJwX0kIBJkNCz5Xjl2vup7p1q+PvG2M5YlOE9OON2s9pLDFYPecDA6/;4:jfW6moHvRqTahyoWuRPFPZVKKE3zxaYINmjo9yl2wQMF8zv3CF4/RCOzoubeFRrYXe3XyZWJJd7rMR4seKF8UAWA7zjXqvvgZj+SAtVRwfBmGtM0HEJxUAVDSasE8LjNGHcqT7RVre4l1dR+C61zXA20yfys2i8O/tXh62BpwRr8jCoCtyXeZvDHd6IqCg0F/nb3zLK0xA4tqaJGEcFeyFV6PDFKcp/QprEiLZcoWA1YMkad3TVaf3WZty2SPsfkoEEMZfYRzzongxWDekRnfQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; 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)(966005)(44832011)(86362001)(54906003)(81156014)(50226002)(47776003)(97736004)(81166006)(2906002)(110136005)(8676002)(14444005)(316002)(16586007)(4326008)(16526019)(8936002)(25786009)(305945005)(486006)(66066001)(39060400002)(2616005)(186003)(6506007)(386003)(6116002)(3846002)(7416002)(68736007)(53936002)(476003)(7736002)(26005)(52116002)(6512007)(51416003)(6306002)(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: 1;AM0PR04MB4290;23:JaFRbmpWinm9vFWDy04HcMeBuKME9VMYgeROSCn5oQiMJwHaBgAjfgkEhrhinrb/8Lh1/EnoP3T6q8b1xbxL0kyoEC10zmU/tFab9cyUedBVUGWOkVXmzRLTDlt4GpX1sY0nQXYf+amJbiRdulmY/PH0YpFXyCtwbfpc0rsUcm/BGKTms4/HpQ5ftS1e8Jl7iAzMEGZkvWD1bzDSKpX26X5UnmCusyCUAAOnyPmVzyJillBUDqbH8JqsuGi6o/sHf4vihz9gtsYFZHseg4ctn6DPII61T7qA5H1p8/DMKW+CRMj5bJRBRGzSzzsaqkdma4CRznJKlutkpuaLM87Yi7D8e9XnomIfSJI0KRr4sHM85SVt2er6GTKCSGSpLIzDZ9MACXTpZ+jFNNg6jSo74La96pdFET8UOlK5GOfSmu0JNAM1WFsYOfog+OLRK8ke/OdRcf1HriqAzhPBvaSR6MofQ0jP/PCd+PZWx7t8FA6NEVICo/blV/NxoWZnixXoBYzZdXdNmYXmGtBylTHlk7L8f4pRDOXQJX7SwWEZnQW/PmC4Y1vDuMMKFqjS6xwveHHAkXoCsfCKy5vbEUdAo3uGosRcXFS2RtKqawVgM+P5VIRa7zM/FZXsTnZN5Fm0J3F7S8IO/4k+EsMHF9L334UL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Zx2ARXrCjC01RfiyWnIke66MLzw/cmrghqUz0WuLpPaKqDzi+am3a3ltRLnFkw5iOeT4XGaPefJAuHZvHrZmunPN061YNg56Y3W0Jpn1C9kcGASk5mDkIOymH2ApO2CSOJftjmkwjEPVODCv3ORUioebW9JqZr17ElhzMoATymVSfYp/poHvuNOpuPNaApwA4t4iEIOVRDiq/yO1L3Is1IvqNTZmDrZnei/0DcIpAeJcnbJ2D7fKkEGWxw74kc9Hz5K0/De81i3TADizDJQx800KmZBbXBC5hfF2dgRgC6MsOIdQ3Qu2s7j86GtqPMjc8gbwtq0W5TA5OYjxRmTdQxvVCTKUR8S1ovi4eU3HwReEjC1rPNH4IYshXzXpNqC4IZQoV7bWfEF05jTzQ==;5:XuH2wt6FGB6pvyTJ9kZr216IpAgko1N04XFgVU/Jy4Jn/Rjhm+e7HDazNzOSL8AVNUCIihXDWn7CwqzqtO2M0/lLPmhRnuYb1TeSDRvBg4hAiHLFr8XyOT9H07cYPzr/LI+WPwBvK9lOK+Q/Chkpn4xwNEd/gbEVFlH/4dQBNgU=;7:sn3gCDeybeHzfHMg9isFyHkh/dkpHiZygc7RwjCbTQbDNjcYWoRRHLTPq2qU3tAEC/kIfJjgJeTOCIHvKs2qloKis/XR9RPsnsluSNNpjOnaFJMrhafofMTOtih6ATq9lCCcU8SS56l6s6RRLCLiZbAyncp+xtRIRSVeKfediiFHrKBVVGNnWU3NdiQ2Pg3oz3b0zmWU9gb7GnMWd2pCebVs/DOFX7bY0lsMXVFsvachjqETC+YpNHo0qMqEiOLz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 16:15:11.4489 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 16bd528d-1a98-451a-a909-08d5f180a237 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4290 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Changes since v2: * Print with dev_info if link fails on resume (Lucas) * Add a comment on imx7d pci irq mappings (Andrey) * Make imx6_pcie_ltssm_disable print an error on IMX6Q (Lucas) The ltssm_disable does not return an error because it can't be usefully handled, reversing partial suspend is a nightmare and unlikely to work. * Drop "reset: imx7: Fix always writing bits as 0 (accepted by Philipp) Series is against linux-next tag next-20180724 where the reset patch was already accepted. The imx7d.dtsi patch is also useful standalone. Link to v2: https://lkml.org/lkml/2018/7/20/472 Leonard Crestez (2): Revert "ARM: dts: imx7d: Invert legacy PCI irq mapping" PCI: imx: Initial imx7d pm support arch/arm/boot/dts/imx7d.dtsi | 12 ++-- drivers/pci/controller/dwc/pci-imx6.c | 97 +++++++++++++++++++++++++-- 2 files changed, 100 insertions(+), 9 deletions(-)