From patchwork Tue Oct 27 07:29:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Z.Q. Hou" X-Patchwork-Id: 11859567 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF733C388F9 for ; Tue, 27 Oct 2020 07:41:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 863292071A for ; Tue, 27 Oct 2020 07:41:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="LgS2vGy0"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="KothzSq5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 863292071A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References:List-Owner; bh=1XgOiqPHtQfHxe4M6uCc6puMxdyVHDU6HLhelLclqQ8=; b=LgS2vGy04n7FLqfhGj3izxEJ5P LFv+Z6t+7QfLK0Y5+9Jy0R2ooQztM02a8P9GaS6cA5bzLt8X5RuJ7QLpT6zzr/D77G6ZmbGt9H5J2 ktsnJm3b8kTZt569vanZqTrOgVtc8rc1Q8WCzOx4DKDgzbWh3Ru49/tlcYE28rTaS4Nwu2Abn6N4V ffFApUgeBe3c/8qLdSKwsrqh4qfbDlDS/5BGpbCWSDdWJpZVeTxVlV+mVNerDmRY11eZdttkXhwQW r+hm1YH4tc5j+YrW+RWQq8zx5ILNk6+KAM6FGAq6yVqkk9K52kO/pait5VsqOsHE8dS02aSiR8KrI 8VejvUGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXJax-0002yU-NE; Tue, 27 Oct 2020 07:40:39 +0000 Received: from mail-vi1eur05on2058.outbound.protection.outlook.com ([40.107.21.58] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXJau-0002xT-GK for linux-arm-kernel@lists.infradead.org; Tue, 27 Oct 2020 07:40:37 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F73n1QZ2FO1UCMk8925y2AmCcrHYcMADVaYxRINyP/BgFBEan0Scee8CO/fjj7uT8J20bruyIQntHnMngTEaJ4LkQlWTuOIkTcol88Ilygtmzu1he7LIMkrYJ1WKx7Si4IGfSE/NqZc6BiRxPyrpkwV6/6xw4EDlZ0wR4TqcB7d13HTcLcsZsGIGvC9OWmf2QNPkGlRximWUx0Os0vNOvF1670o7kIvOEx3azp/Ty4VsrMvWpfw29hcUn5u43Piq/hrpHOaonugrxLZC0+CXc9dMGtya4Kkb6u5nqEcBae5ompltFVnOx5V3glyifr56XLtr1zB4P40mL507BC/HGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nUB+9OuLCsnBgZUia66ih8NR0hfvkDzhENEJNUsxKGc=; b=fVvfQ2+8VqaLGf4AYHrUYT/M2AGpytzvz72rN/UsEQFl+Waiw6acTb+uQsRGKrZio5lZe1DzcbsmHg0HF74Hve38fdW0xGY4fvGE3X9WlLzaTaXm1nhtK/cUTbQfpRtmsLiqX/eofR54w9FtVML42a5TPD9icinmC4gvhfxiEplZRAhFAvGVokBucF6xTjdVnw5z58nHaoMU0YMu7uVMqKC80wUsi/mJgrHW7FCphkn4Jzicn47UuO4dgb04+2V2jjCmXFsUIL2JtFYYMDpW6Ccoob8L52B0Hn2D7IyvQ0Cav0les0hf+N3nCY0XFC1NWbuSx1evtlvvwnDmUrfiAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nUB+9OuLCsnBgZUia66ih8NR0hfvkDzhENEJNUsxKGc=; b=KothzSq5xPBlkOz4cJQmis+VS0HcPfDomYGGSvcqkpmLEf/rK8mLkdWfojfRichdW6AZPw0ov2kq3gNxmAmz9DbsfIf0OV5z3u/9bzL46u9iaJJrYmZTsnlt7A6ufAHU+lH4Ut1k9/bNGqgM8onfjVVxH2M71oXXx0F3fNg8jgM= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nxp.com; Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) by HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.27; Tue, 27 Oct 2020 07:39:33 +0000 Received: from HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::f882:7106:de07:1e1e]) by HE1PR0402MB3371.eurprd04.prod.outlook.com ([fe80::f882:7106:de07:1e1e%4]) with mapi id 15.20.3477.028; Tue, 27 Oct 2020 07:39:30 +0000 From: Zhiqiang Hou To: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lorenzo.pieralisi@arm.com, robh+dt@kernel.org, bhelgaas@google.com, shawnguo@kernel.org, leoyang.li@nxp.com, gustavo.pimentel@synopsys.com Subject: [PATCHv2 0/7] PCI: layerscape: Add power management support Date: Tue, 27 Oct 2020 15:29:54 +0800 Message-Id: <20201027073001.41808-1-Zhiqiang.Hou@nxp.com> X-Mailer: git-send-email 2.17.1 X-Originating-IP: [119.31.174.73] X-ClientProxiedBy: SGAP274CA0002.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::14) To HE1PR0402MB3371.eurprd04.prod.outlook.com (2603:10a6:7:85::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.73) by SGAP274CA0002.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18 via Frontend Transport; Tue, 27 Oct 2020 07:39:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 5e08a333-f5e2-4301-35e0-08d87a4b7025 X-MS-TrafficTypeDiagnostic: HE1PR0402MB3371: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: togN5Q44q686fWgz+uWJlmRXvZ3JVrLNdzhbSx68rQyEJpLsEW81fxiyYCDn7QJFOa9FHOEQecfFFQRM6V+hfXywdI3YdAC0B4PU5y30MEs/FIdLFqIKdsfLC7qvcGjQdqyWBs6SBoLHP2+wqF4CykjQp9nwmSHiwKLi70ESY3+tcqcALOh29rRl6W62O0rt6mHrIKdcgCyjfwte7RcHut0/mLhIEsHZDDIt3aqV4l7E6QktYIesr96ktBIsmRGiuvHVAk11QSdkaolDalF5Haqs89BOD3e/Aaf1IhzvSXbphJHzkSL7n4Gn+LwiK0v1igT7iLpySbByQ4V+4KfUW/hJcEeV7RjDCoDmvncT04D485zXh0juzw7nCGI4b+70SIcdWfcoWmv+s97kKtyRRQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR0402MB3371.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(366004)(396003)(136003)(376002)(346002)(1076003)(8676002)(5660300002)(86362001)(2906002)(186003)(8936002)(6666004)(4326008)(16526019)(6506007)(26005)(316002)(52116002)(2616005)(36756003)(956004)(69590400008)(6486002)(6512007)(478600001)(83380400001)(66556008)(66476007)(66946007)(921003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 7GP3Fe/S30ORDLgRzMnVcKiXoe0aBA5FUPMKTqbA03rYcxQ9VbpqRwVR34jcVnnMMqxRbTlMWimBnraGd6xZKaAXFCh8yZKqNOVrUo86Zdw4OXs5aUEgN1VWz5U0/FMJW7IDvqHXJQ9LTHaQZAr4xYBru0+O57YnefKkAwZdw7kqAEHSbCqz62NdnitPccFMNiVdf6VGqLVUktPz33k13tyg45weSKAepPkVYDvi1himLQk801O7H68fnOCfMQNm7VX0mexVCYcP2Jpo8AOkQxAD8gA0hzfsi78lNxG5On6cM+udcumn+yK0O4+09BWIx7TQhOovVLzwJKCFjDgJEkYFuRP/L6IN6pOZnUG/6WcInlvxnaJqF37hlUuFEi1Rd8smhx9EKWnRmF+C80caVHQlZnXZj6xUA7aiJbnTFOMn/4b7jOyEcpKwAwokdVZsNEsJOKznvIMIgTjynSLByZe3GtWnxcDDuavTmMtzLXK88bTbGChEHDhUSi0ERTM1Lc4fQNUTYGdLuXYWNShMW6miJ3ZlHKmKI+p7+rT0c4vNEjAjEHbTedzqqCdpuf3dDIg099Iwu1LUU6I5lrQ2UTVfZ3byAcQsRrvxNK3ftWXYfRaLbNZGQ8TyF0pNhVMeT2Ag0PvXEW4fLPnjDOGhGQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5e08a333-f5e2-4301-35e0-08d87a4b7025 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3371.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2020 07:39:29.9835 (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-CrossTenant-UserPrincipalName: u7mLmjlSQ41/lcmgb1NSrY+WeL31b5qqTcg8vllfH+eDefzTfhwrFnn1OE8wWsyjwuzMdoKe3PKmM9Dgx0bIXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0402MB3371 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201027_034036_612181_7FFE96DF X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: minghuan.Lian@nxp.com, Hou Zhiqiang , mingkai.hu@nxp.com, roy.zang@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Hou Zhiqiang This patch series is to add PCIe power management support for NXP Layerscape platfroms. Hou Zhiqiang (7): PCI: dwc: Fix a bug of the case dw_pci->ops is NULL PCI: layerscape: Change to use the DWC common link-up check function dt-bindings: pci: layerscape-pci: Add a optional property big-endian arm64: dts: layerscape: Add big-endian property for PCIe nodes dt-bindings: pci: layerscape-pci: Update the description of SCFG property dts: arm64: ls1043a: Add SCFG phandle for PCIe nodes PCI: layerscape: Add power management support .../bindings/pci/layerscape-pci.txt | 6 +- .../arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 + .../arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 6 + .../arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 + drivers/pci/controller/dwc/pci-layerscape.c | 469 ++++++++++++++---- drivers/pci/controller/dwc/pcie-designware.c | 14 +- drivers/pci/controller/dwc/pcie-designware.h | 1 + 7 files changed, 385 insertions(+), 115 deletions(-)