From patchwork Mon Oct 1 19:53:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10622715 X-Patchwork-Delegate: bhelgaas@google.com 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 CE6E913BB for ; Mon, 1 Oct 2018 19:54:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB47828449 for ; Mon, 1 Oct 2018 19:54:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF90E28470; Mon, 1 Oct 2018 19:54:43 +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 4A4AF28449 for ; Mon, 1 Oct 2018 19:54:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726351AbeJBCdj (ORCPT ); Mon, 1 Oct 2018 22:33:39 -0400 Received: from mail-eopbgr80058.outbound.protection.outlook.com ([40.107.8.58]:27854 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726378AbeJBCdi (ORCPT ); Mon, 1 Oct 2018 22:33:38 -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=gcHpQx1osWYA89qBg1TuwzlD5kf9CA2IoNUDjxNrET0=; b=Tu+rBay44u2oB3GXmmWuDjwkNpz8u7iy1XnRV/u9e2+rnQIi3kuMp9PHZk3PNvlW2pJMrXtJOaJ8kRCVIVVYLOeB1bifIFu6Ld2I3xWASERtDRrBuyib8s+kCgulQRH26yaRGc7qUzt3DGkhoVRXo/ejRqWs38+pxaca3Mh+RHk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Mon, 1 Oct 2018 19:54:08 +0000 From: Leonard Crestez To: Lucas Stach , Philipp Zabel , Richard Zhu , Lorenzo Pieralisi Cc: Andrey Smirnov , Gustavo Pimentel , Jingoo Han , Bjorn Helgaas , Shawn Guo , Fabio Estevam , linux-imx@nxp.com, kernel@pengutronix.de, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] reset: imx7: Add PCIE_CTRL_APPS_TURNOFF Date: Mon, 1 Oct 2018 22:53:45 +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: VI1P194CA0013.EURP194.PROD.OUTLOOK.COM (2603:10a6:800:be::23) To AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72ca1475-4ca9-4169-a7b7-08d627d7a71c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4293; X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z6DudrK/naK75jr7TwqL0P2twjLYvJY4PBtDXTnlaSik+s33QjufncR4zkl9VIYdSDT932VVt8UhJUJ0UGr7T3kdnCO58PMLx5O8g3gEi0smfBdUbFM+jWo7CW8jwxfvw2Mmrh/cFnbVsRryD26qWtZgfdOgVAdy3sadtnNRaNWvPFh2SbGbE1sf+5hLjX0wRPYQTDwAHfKcxky1uHrskMKuAkkfaj1OireM0LZ+wHHHmWxJHprssdlTaMqqBX+pHrZvTlFkSLD1B9WafH5aaKYkrrh46UFlU/qcZo+IE8U8jxrZ6SCJhT5iykSRwlzeGP3LpkOOFjV+RJETCd81UlEZS/XuNhM5kqIoNzDtLgXZrlWZFYnZp4sSH2;4:Cn6lXqQmlqVqK21qyj8NecrmzDKEeFELHQgzR57LuJ7iQYFGWUxa2I5Gyri075d2woRvTNvxYCF6xP47FKdvRQnK6Ml/sJik6oYQ0kX1xJWKPJUIe5DVxTlSfVP+Ah2hvj6YOoClrmwe2zwnOHvQLktwuRG0uWLBe0GhVzKhsGD5uTA+3m75nMiSwv75MiQ4sgQP7a5MLi9gJp2VpqOCij/oQvXAs/qauMshGCyVEWf5fUDvA58ymxsZYTLzktUN7qyaBv2lbH519XRXURhol3QoFUYdK8OhNekkw2sZxzw6kTWNAnhM27cNtfJfCMwi 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)(5005006)(8121501046)(10201501046)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:AM6PR04MB4293;BCL:0;PCL:0;RULEID:;SRVR:AM6PR04MB4293; X-Forefront-PRVS: 0812095267 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(39860400002)(366004)(346002)(396003)(136003)(376002)(189003)(199004)(6486002)(7416002)(110136005)(54906003)(118296001)(6116002)(53936002)(6506007)(386003)(3846002)(11346002)(478600001)(105586002)(16586007)(7736002)(50466002)(6512007)(66066001)(47776003)(25786009)(956004)(486006)(305945005)(476003)(48376002)(26005)(2616005)(51416003)(52116002)(106356001)(6666003)(2906002)(39060400002)(97736004)(16526019)(186003)(14444005)(76176011)(446003)(44832011)(86362001)(5660300001)(50226002)(68736007)(69590400006)(8936002)(81166006)(81156014)(36756003)(8676002)(4326008)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4293;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;AM6PR04MB4293;23:ceUQWfxQVmePjKE1e5QkGEtsDfOpcmHe716M4V106Ar4Xhorz4i9G94BrlcN1BfE6RWdo2MP8IVnKvHjOztlkjKEKqru3hAVSW8EuMVYO9UaCnhD5eL+VeLKX09Ho8kxg4i3zQDg11Hk7Y5JPH11AFd0PfPtKEbRP7POSjH8N7XHuNhkEOGHEAKa7XdRYj3kHhfPMrWhG0nWwJjOESJhd2+JYnQxz5/7n869HS97d58ORFqtTF3ar0V6V1gJmW78DFH2rrWqv6A9LqnNaoXEHb5YVqvPC6zL3VdSOZqqBzi47sN0cEdksP+u/c2RVf6xsCkTYoeWRiGtMBQ6P1MYRa1v4iqjl42I9spVp4PWUAod6Ax+9Ud5I6wMofKpSPtSmRceBnLYFCqMd9gBNWzRufsvjsUhEBTKsmB3FYLrZED0/7hDdgw+vYgmFIDTkORf3fVLRcWedwz0fHMUFzJ6KTtrtAqTjtY6Ic4BIL9sA9gdf/39ymbSvQXV4kXAb2eTwevcpx7tr8TXLLmUyqe7gkWuwqvEEgY/VgIlVrot3XFTrzyHC2YlW9bo7ZGyFaIXzWesSse9/QWEsJU3Q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Pk2OihYeFbzs0elCMphPT5S3jimNZdsz5oGr64a1pXueEp80wOJIqiVmI9GjBE448EUyuAE8vxYTU= X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4293;6:5s5u9UuDIE/Q3xFfKviGi9yz4GolDSCeYix9s7ioGbDlPra4Y0ESI5tTG7hLTPeahbkZXPklPzMhfbAd6LleVXbPMZosFcxrNirGN88v5ZXX1dEdYtL6MHHxuEFsfVB63qZfnRXwL5tQZUkDRTPns/KrYtL2AM3PNjJ4fjrILB/4L3zz7kXpc70EckD/jfG0Ix+zuMNbM0nG0YoVqHWVAvIy0nWG8IJkPdl8KN/To8gYRVoNaii0xfz5KO7cQaZt5FO7Lqz0udA1CwSLpTsda/hNBiUBB8iWniMV9RNPwTqXjQtM77pL4xvIBW+RCuDAXvhIg2dc4xvravMgGmahZQOHR+69gk9BoN+2ADKfT6bBnJ548XYIljGSqcH+bFElst4yFYUlVn6WJnZFtWRV6AoUUq0dRzp0cLxhk0vMuvWxNfPYgR1JUoz/mlHRjZAiK6nNqA0cFbWTpp/lfvfOJw==;5:z6e/dh4zEqIowemuCu6V3K9BhJIWkoTFg4ObWOrid5ZeTSKUJ3wVn7zIIuyyqsGzHCxCKjF2pDLpPUcdgSTz1obCChOUJVAva0MmEKK07Z+wSudHOSVc/9CBd/9VH6scamIYm1/SeaI1gzNIinxiRS+okitJuHVX6YfQYrS9+xU=;7:OZgsTn0M56wH/SnsbKmhurTaBzZMp4OSPqfk+G+3HW7xrvPQfcNeNby143HawfM9P9bPoRTuiDWlRP+lWKhqcXH3G/zPOoVQgFtjWv4GiDo1nzsHmPzT00GV0r9Ko+G1pRyXTDWTpIS8edE1gfXoHnoPtcQk8eIDGO6v2qNW0MipVzLh6QXyL0RftwobYUYdgH6L5/edxnpAiSqseUmDxavaxVzdS43LpT0J6vjNxoz1jPklCLFNusX7r6iJRQEp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2018 19:54:08.5722 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72ca1475-4ca9-4169-a7b7-08d627d7a71c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4293 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 This is required for the imx pci driver to send the PME_Turn_Off TLP. Signed-off-by: Leonard Crestez Acked-by: Rob Herring --- drivers/reset/reset-imx7.c | 1 + include/dt-bindings/reset/imx7-reset.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index 97d9f08271c5..77911fa8f31d 100644 --- a/drivers/reset/reset-imx7.c +++ b/drivers/reset/reset-imx7.c @@ -65,10 +65,11 @@ static const struct imx7_src_signal imx7_src_signals[IMX7_RESET_NUM] = { [IMX7_RESET_MIPI_PHY_MRST] = { SRC_MIPIPHY_RCR, BIT(1) }, [IMX7_RESET_MIPI_PHY_SRST] = { SRC_MIPIPHY_RCR, BIT(2) }, [IMX7_RESET_PCIEPHY] = { SRC_PCIEPHY_RCR, BIT(2) | BIT(1) }, [IMX7_RESET_PCIEPHY_PERST] = { SRC_PCIEPHY_RCR, BIT(3) }, [IMX7_RESET_PCIE_CTRL_APPS_EN] = { SRC_PCIEPHY_RCR, BIT(6) }, + [IMX7_RESET_PCIE_CTRL_APPS_TURNOFF] = { SRC_PCIEPHY_RCR, BIT(11) }, [IMX7_RESET_DDRC_PRST] = { SRC_DDRC_RCR, BIT(0) }, [IMX7_RESET_DDRC_CORE_RST] = { SRC_DDRC_RCR, BIT(1) }, }; static struct imx7_src *to_imx7_src(struct reset_controller_dev *rcdev) diff --git a/include/dt-bindings/reset/imx7-reset.h b/include/dt-bindings/reset/imx7-reset.h index 63948170c7b2..31b3f87dde9a 100644 --- a/include/dt-bindings/reset/imx7-reset.h +++ b/include/dt-bindings/reset/imx7-reset.h @@ -54,9 +54,11 @@ */ #define IMX7_RESET_PCIE_CTRL_APPS_EN 22 #define IMX7_RESET_DDRC_PRST 23 #define IMX7_RESET_DDRC_CORE_RST 24 -#define IMX7_RESET_NUM 25 +#define IMX7_RESET_PCIE_CTRL_APPS_TURNOFF 25 + +#define IMX7_RESET_NUM 26 #endif From patchwork Mon Oct 1 19:53:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10622713 X-Patchwork-Delegate: bhelgaas@google.com 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 BAEE615E8 for ; Mon, 1 Oct 2018 19:54:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A782B28449 for ; Mon, 1 Oct 2018 19:54:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BCB728470; Mon, 1 Oct 2018 19:54:36 +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 3F0A128449 for ; Mon, 1 Oct 2018 19:54:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726573AbeJBCdl (ORCPT ); Mon, 1 Oct 2018 22:33:41 -0400 Received: from mail-eopbgr80058.outbound.protection.outlook.com ([40.107.8.58]:27854 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726204AbeJBCdk (ORCPT ); Mon, 1 Oct 2018 22:33:40 -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=QKgxpJZAq0IxOt1s0jrqbaO7p7YwGpaqcmHREvCvth8=; b=aNhN9qh2m+AtAim1qrVmO9oPjvQIOLoJfrfitQ8pYqF+H13yTqMwyOiUPzRhLce7qBFW8p1e+dxGdNwEyp2CRqLGyV3+JiHN3oVUOn/K/gr5Jg627ZA+Zt9uIupXzXsjSy0SxatL1JJCADyGXv9vMngg7aIQhRPMtSQFJqu03BA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Mon, 1 Oct 2018 19:54:09 +0000 From: Leonard Crestez To: Lucas Stach , Philipp Zabel , Richard Zhu , Lorenzo Pieralisi Cc: Andrey Smirnov , Gustavo Pimentel , Jingoo Han , Bjorn Helgaas , Shawn Guo , Fabio Estevam , linux-imx@nxp.com, kernel@pengutronix.de, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] dt-bindings: imx6q-pcie: Add turnoff reset for imx7d Date: Mon, 1 Oct 2018 22:53:46 +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: VI1P194CA0013.EURP194.PROD.OUTLOOK.COM (2603:10a6:800:be::23) To AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b6a7baab-95a4-4b8f-dac0-08d627d7a7d1 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4293; X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4293;3:Nk6mJsVDCIzvqGDoU+tDnG3Jocl9VAhmaKTmP4/2ibVZ1sLTyaks/ih5XCWJDoCCBLSNnlhy51BK08P/pKCaKdHC27nPG7T3LiwHTfgRUshHF6T0f8DSnzjzrnf40ACK++V+CU4wHolxUwA6gj6E8CtX+jX3xKdv4i2Dp4dR3oNlkWHk5VWC30MCnP+Z0Kx1/PGLTcLSfbia0KGC8SGoXgvPv5OvhV7WFNSdW6I8lUjgBNL4VaS+b7g4dHdH0HH1;25:x0k1mDmTyt2co8eXBKKAis+15c4p8c8Guzom+pJcP8TmuE0wSc5BiRjy23ZJ9rqoZweTHednKDKJ7daym8E6cefMoLPn9DflSxXGnv1MAYI3yKLM3poxyzOkVA3fmKV07uA21CejJ4eKQB97aT1WkbYHV8n1v1UYInGR+gmaiHZX3jHuaz9wCD90boFrhDB21S05ApAYeFYe7CHWiJjBbqpvqUxCmnSpbPNZy90eDPpbfj0duG4YVrOLIi64Xe6YSdqS1cAdH0PoZxTPuOXkytb/dgse+3PeYHhz+Vv+5xY0xZAIMN+m79hCxAhmsVMAF6rIE0q1gZsGSU08+qfhyw==;31:owJqj3CiB067PXAoPbUtiLV08XttQMu3ZfQUg8Y/q5IyA1qJxYmslFD4gOY1ziRkkTyvtZW5c79xw0x1gV0UtfB/9WAuY+C3J3unRCFIu8jiUcdf+l9cybAVB1tno0X1hcXds8910C1Yns0c3YgqHQE30aZGSE9XrtP4vBXTz7VqjkMYgBVPnWSH9ZKLWuwg40b1ZlatTp6FeNLFZzTDrhxki50NZ0aI0pSgjLVXqGk= X-MS-TrafficTypeDiagnostic: AM6PR04MB4293: X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4293;20:3t015tIk6xhbCZKyg+g/Jv1q7dZH7u3zWkVEK3l6Db0EiFFR89YDRJRl1jmqAZuaSxoUgR3kkTxT+o7f8gHJbKIE8gR4Pk1enpR/ZvDEqpMEw4jwJY9An5EiJCHu4vJpKTaq6vIFqa4wEoIbwlKCpm8WRsQ1fSpNCkhh+/lZJXE1lUe04VkUa+KR8Dcmps2iZwbIEozi9hxu0dbfrpSEQf58T8cm3+7cWWrPeIhTMfymmOX5iYy8DcvBCuT575nNR1LahRPfjuOEFwkDY6EQ1IAowM8qDZhYYKgZAApM7/Fgj9Pbse5+LSNkUogkzI+ectwKrsateAq42oSa3NmDwHc26YSvMT6iMxfn5krNu3t48R2sN2A4ZtI7KdsW+w4j+qc1qROlJhrYHdFgcIJIXBeKW206SywksMRgfs4kbGuOZkm6vhGuqSNJQfesYQLtwUioXHq6AHCpfEiBiKZkFb7jEJX/5d1mzMxXY5oofs6JCGxMgYVRWdOMbczDRiRR;4:I+nRKQQOAMCbiLcRfKp/3g061qVE/OdmIHHyMX3Y5K3o9tgbKiIPh4wyW4iC8rPLx5btLRhRY4e1gpBnP2YxazESoUGnwBnyNt48Y4pZ6RhjepTEwNQOsqrNh0ySXAgiGS4r1LWhscQXLE5P4vBvO64d0wjYaINvwNP7tzx6ytRsJnhL5vCye3iAMzVf2mHAo0KS8SCKo3p6lTY6wiY9tbwYGJEnKw+JVNs7R6+oCe/xDIRHyJxpOkrZuOxUJXGSIex3TXc/98C+rEDqZhX8wL1yaFV0wVj4iu5jg7gYlvZG6FNQFcSkdkvKewRtXUCP 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)(5005006)(8121501046)(10201501046)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:AM6PR04MB4293;BCL:0;PCL:0;RULEID:;SRVR:AM6PR04MB4293; X-Forefront-PRVS: 0812095267 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(39860400002)(366004)(346002)(396003)(136003)(376002)(189003)(199004)(6486002)(7416002)(110136005)(54906003)(118296001)(6116002)(53936002)(6506007)(386003)(3846002)(11346002)(478600001)(105586002)(16586007)(7736002)(50466002)(6512007)(66066001)(47776003)(25786009)(956004)(486006)(305945005)(476003)(48376002)(26005)(2616005)(51416003)(52116002)(106356001)(6666003)(2906002)(39060400002)(97736004)(16526019)(186003)(76176011)(446003)(44832011)(86362001)(5660300001)(50226002)(68736007)(69590400006)(8936002)(81166006)(81156014)(36756003)(8676002)(4326008)(316002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4293;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;AM6PR04MB4293;23:aAGjzXhmt59Zc8bidT22PsAXxvQXS+pNPMb0sKceJzkKv9aiR4LStUxXDWbigb/iut683NsCL3/9loFRJdvDuQB/GYPhmuO9nbYzIn4hREB/Jn0aLmpOVP7FXnO/+j7B2iQyrqfrp6jtejr9T4Xvl9CCkk+Wbpsy2LTo37S59v6O4gY9Jo1ENtT8R3pcdfC5IbHozFf9rbRIJLoHyzjRSPwGFqhWhcJJ8Ur5xyLD70w5YJv3GX0TzAQMylZCnjLG6qDMP78MGi7bcrPU3gADfnuez8qSzBWgfB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ukYZy9E7aOpCRMczyytpbe2Ji6jwECPTm7Zft33kO8jTk1IPT/Ycp+9OHy3uxtVNfoLb0p9dzZnRcMJmVHFozBP10SS2gzWGEFLHL++MacyBA/kkG+NY9CqtwnQMEnuHi/+0Za5UqT5jTnGfw5SNJhnmANzazlahVxcZjynGGwD/ljeZcJA6iemv6TwULbhATYcsgZozaS1Rv6VlL5XXejgCe1ZRCQ4zjPmp6Q0D3fuZroxZmvN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2018 19:54:09.7597 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b6a7baab-95a4-4b8f-dac0-08d627d7a7d1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4293 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 This is documented as "required" but won't be present in old dtbs. These resets are also present on other imx chips but right now only imx7d implements them through the reset controller subsystem. Signed-off-by: Leonard Crestez Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt index cb33421184a0..f37494d5a7be 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt @@ -48,10 +48,11 @@ Additional required properties for imx7d-pcie: - resets: Must contain phandles to PCIe-related reset lines exposed by SRC IP block - reset-names: Must contain the following entires: - "pciephy" - "apps" + - "turnoff" Example: pcie@01000000 { compatible = "fsl,imx6q-pcie", "snps,dw-pcie"; From patchwork Mon Oct 1 19:53:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10622711 X-Patchwork-Delegate: bhelgaas@google.com 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 611606CB for ; Mon, 1 Oct 2018 19:54:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EB7728449 for ; Mon, 1 Oct 2018 19:54:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 42AB428470; Mon, 1 Oct 2018 19:54:35 +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 DDA6D28449 for ; Mon, 1 Oct 2018 19:54:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726204AbeJBCdo (ORCPT ); Mon, 1 Oct 2018 22:33:44 -0400 Received: from mail-eopbgr80058.outbound.protection.outlook.com ([40.107.8.58]:27854 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726565AbeJBCdm (ORCPT ); Mon, 1 Oct 2018 22:33:42 -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=RLws/9GWcFqaaUiIhkrcOrQVtykwhJda4Gl+m1r+D4w=; b=js0MICKI8CdhKPWnfqYDnhChC8EYe8VZ4sbdgPdsWzRPjvNKtVcs/cGMHeeg+fWUxJVgPAvOyLQ9d3KhhsR6c+le3FzvfiTkuV3elBAotMT1YWc1+9gMZyVmHik/dVjCE43Ek+Xa49wV8+PsvAwAE/gTxMDhkxd659KQp2SiUhE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Mon, 1 Oct 2018 19:54:10 +0000 From: Leonard Crestez To: Lucas Stach , Philipp Zabel , Richard Zhu , Lorenzo Pieralisi Cc: Andrey Smirnov , Gustavo Pimentel , Jingoo Han , Bjorn Helgaas , Shawn Guo , Fabio Estevam , linux-imx@nxp.com, kernel@pengutronix.de, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] ARM: dts: imx7d: Add turnoff reset Date: Mon, 1 Oct 2018 22:53:47 +0300 Message-Id: <50b195c5fb2001a8e4b2d49cd8c473fabb5f3555.1538423063.git.leonard.crestez@nxp.com> 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: VI1P194CA0013.EURP194.PROD.OUTLOOK.COM (2603:10a6:800:be::23) To AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed432979-257f-4d9a-703b-08d627d7a889 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4293; X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4293;3:GQQXz0ZzZykEoxuDjAZY70m7djgxRedtt4WttLW05X88roYZ3GFAGpTdLgJ+0H8jqyLPfi4gL3yR8pMi64ilft66IUQRagRiYICXkDHEWB2jpkMXn3CJprJgvzG1l8s5sAy+3Afkb5FrFL+5IrG5VUPOG5mGMZarW1vTSxuR238csu7Dn8uOggFHZzCmR//1loxnlX4n6f+A3LolRj178tVRgdQ2PAfUCiIekrjfziRbab0Gvfgjsj2L6SPIY0HD;25:QeOc3QQ0v5ZIlPKBUjiurY0xCvORDILV+jMElqYbQbxSWxlwezg9hG11OrCtpVr/jxRmDwWjvU2Y5Jslh+27LaHhshIs8BwrZ3CvryaWBK2cF8aUzJSJvKuJr+Oy4HiXSIo6M7lmw94s9QE9cDsEgiP9JjvOCuEIzwfzAyn44RfqCF1ZrWFmCPYEbDOQA/bz/zFDuuSzCvlP/xtltVwuMVPrdHcEJ7BonRltWOVwjKGRdMq+c5wn4yPQStGA+mzMOPes6lnnleo3rW8qeSTfdxJjD1nbVdRalkT/ope94JOGGF3BuESXUiz9lrSeduX/vlD5FSp6S7PNbhF0vLsuKA==;31:PRQ0xYLR+lMy4FrwUKfR5VZSYQh3KX/TV7U3KmHpEfoEZm7HmiB762xhzivIXR1DAWnmOfR009e1dwFvp2THpb5aJ2MMba362kv/YQkjYDIF1V6dr0nIdA1TC4yt2AUapmzC8NU1/98zL8ROcF51wPP9Pk9Aka6LxLEEVQPF5wcKAmMLQbpo+d/gkM1YZH5B+Dkf+uVDJdOB3yc/vBgbscWEp0/E/+HtfCZhie+YOvw= X-MS-TrafficTypeDiagnostic: AM6PR04MB4293: X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4293;20:eWxMtSfp0W8U9m5yALig9mm0F6bnQRKDgNZQuTsq9+Q9zi9iivByAOMC5VlP0FMvG9YorunHjzJgObcqBv9NBoShz80ZX1IcOhBJ8fsKeQ1b5rjZrjjLr0GiJrL7S0uByf7/7eqesNH5vntQFE/jv8P8QrqdxVlKZ9TtvZo9jrdv0DH0lLdV0EMpnk4Ag09mFis26rtJl5MbWl+AEKUMJnUNK/BjQiWZ1f5m9V/xApuUWrFzORMXF5xqhXJbn93zq7nwATTOPRJ6nekXm1ubWxaJstgS/0+s1syq5u/UJ22ap9hYoAH/BsN6hePEq05vV3zQokCMSqFnEqLs/Qu+goL437Wh3/vX2YEHbsWXUYcPYu4AZMINYhyrzubAFZFosR99Rs9GZQsCwnIwokaLpkXZkqE2cKc026gAafZdDoUOAn0b7WKRH0cGgTN8HYOY2WS/w8n+Cn1pxKI/xN5MyoDJGbk7LzCfMo9vWGQRqhLob10aRpjOvD08bhF+Lebk;4:WfqEpkt+TfHlew0S9zjQZwrjF+e61sQPEeRYfErR4wPK/6CkrE5t/f0n89GZhwRJ9IX7M2ijUtkPNCnYJEV17XkJ4/d6PJXH3UDDrsVEG8P9qMjr1qX4LTDiKldVvqJQRsO/7NzIRjFaG1gEjh7z7pcwwm84WWc4vEI4hsQjN6UnPQltAqfS1Gv8CkLRcXFjeZpsNWanLlsZhI8zA+8wpOxn1tmvILjGNOMy2RYlt8It2R2eGc7048w1XqJSFLn+RJNaxE45AMHUab2cPtkvol1+j8fpost8lDzd5Y02tycYagiziG0vpj57ixBEcf7g 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)(5005006)(8121501046)(10201501046)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:AM6PR04MB4293;BCL:0;PCL:0;RULEID:;SRVR:AM6PR04MB4293; X-Forefront-PRVS: 0812095267 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(39860400002)(366004)(346002)(396003)(136003)(376002)(189003)(199004)(6486002)(7416002)(110136005)(54906003)(118296001)(6116002)(53936002)(6506007)(386003)(3846002)(11346002)(478600001)(105586002)(16586007)(7736002)(50466002)(6512007)(66066001)(47776003)(25786009)(956004)(486006)(305945005)(476003)(48376002)(26005)(2616005)(51416003)(52116002)(106356001)(6666003)(2906002)(39060400002)(97736004)(16526019)(186003)(14444005)(76176011)(446003)(44832011)(86362001)(5660300001)(50226002)(68736007)(69590400006)(8936002)(81166006)(81156014)(36756003)(8676002)(4326008)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4293;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;AM6PR04MB4293;23:+jvqkvrg1wvk8DmjgAPVijlUoDryoPVOUWrDu/l7hZ874X4LIkmDI7eirEZ2MK958ONCLfYjQHOviSsHflTcjmBLKv842P19YatWcgqInvvbHHDA9QkPSiDgFC0lpCxl48FAZ9XgXBoMujiD9wdZApFS9RyVSvEqpR+Cuh7BRDUhQyBbpuxi9FDeKA0BnGLsaeXmGQxtanDY39mCRk64rsab2bmJyZmBPdoY2qAVMzeijvI0g0fiHsm31UrNMV1hQddXMHyGC9eOnVYEFEdGo8PStZYKKYKrJSSNXRj0AuEBVjI37a/BjVPCqh/Lsw/fsB9YDOcF/oLvLk6LUf0tmOBdmZpQfI1nAsy+O4TkU0VfDaYcgGCDDpcBntK6fZZMEsFvfeLL0JI8go0UG9NamwBQYCqHifAJx0taZMJMNsvcNLUGnOZg+I1MHDx/56BW85jMoD5CA1rRHDPuRTvCOcWuCoBdx64mQMnTTHJKpkoCzVkISoHrfPpLgGw3sjFOO9FFjepefmoTPiUL+Xb+n40ZIrl7ztNJHgRSpGFp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put: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2018 19:54:10.9316 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed432979-257f-4d9a-703b-08d627d7a889 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4293 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 This is required for the imx pci driver to send the PME_Turn_Off TLP. Signed-off-by: Leonard Crestez Acked-by: Shawn Guo --- arch/arm/boot/dts/imx7d.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx7d.dtsi b/arch/arm/boot/dts/imx7d.dtsi index fa675b8d84e9..a6b2932634f5 100644 --- a/arch/arm/boot/dts/imx7d.dtsi +++ b/arch/arm/boot/dts/imx7d.dtsi @@ -145,12 +145,13 @@ <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>; fsl,max-link-speed = <2>; power-domains = <&pgc_pcie_phy>; resets = <&src IMX7_RESET_PCIEPHY>, - <&src IMX7_RESET_PCIE_CTRL_APPS_EN>; - reset-names = "pciephy", "apps"; + <&src IMX7_RESET_PCIE_CTRL_APPS_EN>, + <&src IMX7_RESET_PCIE_CTRL_APPS_TURNOFF>; + reset-names = "pciephy", "apps", "turnoff"; status = "disabled"; }; }; &ca_funnel_ports { From patchwork Mon Oct 1 19:53:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10622709 X-Patchwork-Delegate: bhelgaas@google.com 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 58D016CB for ; Mon, 1 Oct 2018 19:54:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 43E0528449 for ; Mon, 1 Oct 2018 19:54:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 377EE28470; Mon, 1 Oct 2018 19:54:32 +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 ADB8328449 for ; Mon, 1 Oct 2018 19:54:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbeJBCdq (ORCPT ); Mon, 1 Oct 2018 22:33:46 -0400 Received: from mail-eopbgr80058.outbound.protection.outlook.com ([40.107.8.58]:27854 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726616AbeJBCdp (ORCPT ); Mon, 1 Oct 2018 22:33:45 -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=LE02T3NF0OMwiCd3gGCJzQo6so1FKO2ay4f+uK6vp90=; b=HYKCGtAmwW93lyQFz3aR2jxTbQKxMWjuEYPZlszoHwebAd+9gp2wZiFbye5muut1ZTfMRME/8nebYFl35hM3gTrDpsNgTTM5QiHv1uFBsHTeVY/+eKfabfOFtiur7rqFsYYxl2Zv/osmYuRbHxD1tjhCP+1ePXl9idYNtqdJV8Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Mon, 1 Oct 2018 19:54:12 +0000 From: Leonard Crestez To: Lucas Stach , Philipp Zabel , Richard Zhu , Lorenzo Pieralisi Cc: Andrey Smirnov , Gustavo Pimentel , Jingoo Han , Bjorn Helgaas , Shawn Guo , Fabio Estevam , linux-imx@nxp.com, kernel@pengutronix.de, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] PCI: imx: Add PME_Turn_Off support Date: Mon, 1 Oct 2018 22:53:48 +0300 Message-Id: <1cf53d188657bba7df06ad417eb2a65160238196.1538423063.git.leonard.crestez@nxp.com> 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: VI1P194CA0013.EURP194.PROD.OUTLOOK.COM (2603:10a6:800:be::23) To AM6PR04MB4293.eurprd04.prod.outlook.com (2603:10a6:209:4f::31) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 385222db-8617-4c5c-67de-08d627d7a943 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM6PR04MB4293; X-Microsoft-Exchange-Diagnostics: 1;AM6PR04MB4293;3:kMwniy2bcErImPN5gz2iQMQoMgSxex9vdvZcIbbV0/co9cGyaeJMvg68mV3Yy3iJ6KbSnw6JcjC5vQPcMA/3P9Zd657EzECM939zjMov3g4isHSQ3coQjxYrXk/6Z58iT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OQ8hIMZbVlAF7uuEZ+284v6UtYBaraNMVraeFaF4qUZ7voYz0LK0qEQydSrX0eHauemmUEb0jWvdrQU44y9LH/lMhtkRIKp9ezN1JZmnkiL5HnPubBwDxlfJBVU4Dkiqxq7JQRmBDazSlpvNU8fAWHozAWxqn337rPPf4ZBDBA7S5xZo67tCN4qJT60nyegp16xTG7t/hkshAXhK;4:JcofM1w2zG+a+ruez0XErVIRFidEIWRjREfatCZDSboOXW1TWXEuOKiFe/s1q4N5iCwsUhRB08BWYkskAlCzX/3IBtzduG3+L7ASDWr4Jm6W8Nzj5qYGsTeRmSSBVhdo83BBZSdsylNGBFRxDhxVKgg4wPZgHWYe4weB6/T4xSSvLZCMHm4G0NMcmcLcbO2y09vJBBzPW6s+l1zbDvLXfpmQYv1xEDxXd6K+ZCP5Q3VtOxrIx8tPXum47nMn0KigH+3UFip00bZqqJOEvK4Kyc/8kWLfgRli9pFhy3M/RIUPoYkZeNhp1f3cY4xohJ8C 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)(5005006)(8121501046)(10201501046)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:AM6PR04MB4293;BCL:0;PCL:0;RULEID:;SRVR:AM6PR04MB4293; X-Forefront-PRVS: 0812095267 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(39860400002)(366004)(346002)(396003)(136003)(376002)(189003)(199004)(6486002)(7416002)(110136005)(54906003)(118296001)(6116002)(53936002)(6506007)(386003)(3846002)(11346002)(478600001)(105586002)(16586007)(7736002)(50466002)(6512007)(66066001)(47776003)(25786009)(956004)(486006)(305945005)(476003)(48376002)(26005)(2616005)(51416003)(52116002)(106356001)(6666003)(2906002)(39060400002)(97736004)(16526019)(186003)(14444005)(76176011)(446003)(44832011)(86362001)(5660300001)(50226002)(68736007)(69590400006)(8936002)(81166006)(81156014)(36756003)(8676002)(4326008)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR04MB4293;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;AM6PR04MB4293;23:Xth8zTxM+7cihlgt7cNZhiqR9uXoQkBpuYdPcO6knMVMPep9Mnc9+QussgVgVc5TWG+vHQAvsJGBx/yt+F0G2U2nvAK29tOebrtg+wruvYp4QGmTDfr8CNfcjyORup26pXZf2bfZCUkxQ++255W4mdYS7K0Xvw5Kdj8Hx5ukf39ss1/w7OWsj/VJYGg6+nB8vJBmO1w/LkHdiO5iVwKDtv92I1b4DMW3F9gVZAGn7qYJZkRTSSTO9V0yKBG4vEgbB0RhAWOrOjQhNqRq0oZtSYvFm5YYLnSILPQuntBjS/A5WD5MlnZAbQufHoZsXYnV6mXpYroKnbQ+QC2HO2cLOeC2S+Zc4eIFXi7NWEscGqodAEg5EcVfRX8RnRy1UNsrALtZxVOlgumr75pFkrnyk9azeNAe2jAl0wsImefW2D2EQej50iwogTjg6fgUmE88Z1s5W9daHMUaQ91OpO7OOs/MDjvf8Qj36gAmvLICqCXd2xY9j4PK3Wb9Io5gPpQFWGnn3t1wA+FEUCry0L+qbplEmT7HX28sBxQgefZC9qOXyJ1aPLziazQLO5AFME5wNyTQfKLoqTl653PWz+yqlFiD7t6dhZagP+YTzmkMsOSy2cEvHdKNqla2qfnLdXYDEXM7ztWnC69wQdfsOaTVg1knlOjhuB8cmtLft6jZMBgFmTaR3zzErzpEawwJBTtsFK6Bxc3Di1T7wT1diAFKUANzFz5xDQnsv3cHScWHMQeWpgSlFPQUwQJOwwW1Szh0BAp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SIdbjQ6n66hOJmEPHxqA6PYQ4zVd/+oWMiL34QMrO3kNM5RHhVdal8qpCbnSQ0AcUGHzOBahiNsqK4+hECG6bljzNIo2DcTasPeI/F743BZkeWjFMh00V+3sy+VZvzIs119AN+o2EoiyOM5ZbRraQwl/nFyHE9+j8DiUD4vwVAgwiMk4/umdVc96tTaCbUoV0EWIdmcJydkkJX6/GS8OmCqjEc0Xr4mwXtk2oS5d3x+nsu/i8jUVJtuV21VsKrthUpYuBJ9JpB8SeP0G5eoscmQk5fG8JsBXRw0aaF1khEfLMzdlr7TVRh2VZaaLTDNZGz/nDF3kFboGv+OAdpdz045X019df2nqvjwkir4xs9ZEC//g9+af3Fjknv3FyTU1eSvE/yPIwhK6fszw==;5:+qZE2b0IGpKUqRefMhl2GRDInZxCPlooMi9tIXqFJgtp3xqW/XGsCe8/bAyR5jnzwT2pXyZJ5pPiLX4C33jxtgvKfq202/XloU5hZjh9lKmCu24wWexaG6uiY6E+268Z7FvXlQOdNE0nChGrLKVN2x2Hy6nTVv87TbFT7Qz/UIA=;7:Pid6INE0105bQlgbiAaUDU4npHp/Xxq+5Ob6ERlmLN2WWQtNGqteNhkGGdfLe+qU5OrjJRauSB+PnaU9PercD1M9OdvBgOuEbAJ+ZO9nY0KcVXaUL0Ic7OaujPVx/cBVfTpCphqVqj0fDAfOkSrwz4h2Yh+HLszJAEqVv0fqjt0bNjCfpVI8znb85JNdaHMlfEOpWXRBNGel+QIW0XiDFhmG5FTzlme/p78qHvtKFdIkOa19qReNoG9dSoPrHcbM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2018 19:54:12.1816 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 385222db-8617-4c5c-67de-08d627d7a943 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4293 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 When the root complex suspends it must send a PME_Turn_Off TLP. Implement this by asserting the "turnoff" reset. On imx7d this is functionality is part of the SRC and exposed through the linux reset-controller subsystem. On imx6 equivalent bits are in the IOMUXC GPR area which the imx6-pcie driver accesses directly. This is only for imx7d right now but it's deliberately implemented as an optional reset, ignoring the chip variant: * Older dtbs won't have this reset so it will be ignored. * Future chips might also expose this as a reset controller. For example imx8m (not yet supported) has the exact same PCIE_CTRL_APPS_TURNOFF bit in the same location. Signed-off-by: Leonard Crestez --- drivers/pci/controller/dwc/pci-imx6.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 6ba16fd1373c..13cb1a200442 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -50,10 +50,11 @@ struct imx6_pcie { struct clk *pcie_inbound_axi; struct clk *pcie; struct regmap *iomuxc_gpr; struct reset_control *pciephy_reset; struct reset_control *apps_reset; + struct reset_control *turnoff_reset; enum imx6_pcie_variants variant; u32 tx_deemph_gen1; u32 tx_deemph_gen2_3p5db; u32 tx_deemph_gen2_6db; u32 tx_swing_full; @@ -812,10 +813,16 @@ static void imx6_pcie_ltssm_disable(struct device *dev) default: dev_err(dev, "ltssm_disable not supported\n"); } } +static void imx6_pcie_pm_turnoff(struct imx6_pcie *imx6_pcie) +{ + reset_control_assert(imx6_pcie->turnoff_reset); + reset_control_deassert(imx6_pcie->turnoff_reset); +} + static void imx6_pcie_clk_disable(struct imx6_pcie *imx6_pcie) { clk_disable_unprepare(imx6_pcie->pcie); clk_disable_unprepare(imx6_pcie->pcie_phy); clk_disable_unprepare(imx6_pcie->pcie_bus); @@ -832,10 +839,11 @@ static int imx6_pcie_suspend_noirq(struct device *dev) struct imx6_pcie *imx6_pcie = dev_get_drvdata(dev); if (imx6_pcie->variant != IMX7D) return 0; + imx6_pcie_pm_turnoff(imx6_pcie); imx6_pcie_clk_disable(imx6_pcie); imx6_pcie_ltssm_disable(dev); return 0; } @@ -959,10 +967,17 @@ static int imx6_pcie_probe(struct platform_device *pdev) break; default: break; } + /* Grab turnoff reset */ + imx6_pcie->turnoff_reset = devm_reset_control_get_optional_exclusive(dev, "turnoff"); + if (IS_ERR(imx6_pcie->turnoff_reset)) { + dev_err(dev, "Failed to get TURNOFF reset control\n"); + return PTR_ERR(imx6_pcie->turnoff_reset); + } + /* Grab GPR config register range */ imx6_pcie->iomuxc_gpr = syscon_regmap_lookup_by_compatible("fsl,imx6q-iomuxc-gpr"); if (IS_ERR(imx6_pcie->iomuxc_gpr)) { dev_err(dev, "unable to find iomuxc registers\n");