Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1554576rdb; Mon, 8 Jan 2024 03:06:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGAEeg94td/5eUqTL/nm0648YYGrKjBaKMQEMtsRI/ZYEA3YkCYoH7cWvV/foNmGq9H8Pcm X-Received: by 2002:a05:622a:49:b0:429:9a0e:4413 with SMTP id y9-20020a05622a004900b004299a0e4413mr644172qtw.38.1704712004203; Mon, 08 Jan 2024 03:06:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704712004; cv=pass; d=google.com; s=arc-20160816; b=l2tcoRzMpdnP/NfzP3XnTumPoHQNgSD6fUpzHey94tqg/di5YGVNKPDJde2zCz9vee ETfGVxLFKdjSMWxRN/RA478jM6Rvu21Vc0xSlJt06Vmabo9yucyopw09q3Pnr+lB4ho2 wkfoDQ44S+gmlClqckvMxJqt5bKv2We4nXY7AFSIjkzpr3yYBUqZvxmPE08zYwEoRhVB Viw+ifg2AQU1wEtAc4SoXgFDc2/1LBLyCdBp7Rg9EPPd+strNvaY90Q6+2J9AYDPlkqg zzSABlQMhJ76r87UDl3ta4TR04Nbmv/TYWhy+Y8yYUL9u1cRCETznIQUYOrbAHi7xrTF OymA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:subject:cc:to:from; bh=HSU4nVQpTjvXtwDBYUs4PXv7FpI58GzAyC84QZ+DJo8=; fh=2Bxzh03UCe+gGoy6PzJXhIx6NDrOamQNShtEzX+UDKU=; b=TVR2zQNb5IjTgN2Gf2Ov+sPIkIlexn/xL5xCw4huQUGSEDJugzbYorbM/CeTXmTa+L pUb9ZX5DO0KihIUMY+mofCyMndsI+whCB5JWsWop3W4ElZk5VseVYumzCl5/0mab6S6f Hc+Lb+y5WeHeUe17xgZljzJ5475N4AYteNRGhTHpu3WKvyxsxSYJwjw7F6dGprKGCFVG A8xGAsBA80pAJhYVrl/vyTiYKhDCrIBlu/0GTQVa/xPSDDimtl6apE0V13NLR9+gPMwU 6OW6aVVt6m6xlA4GpElHCfxJ12TyYYceYIViBy9UgGvGHeprulaaouAoLpu3WLHozhj7 0Tqw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=starfivetech.com dkim=pass dkdomain=starfivetech.com dmarc=pass fromdomain=starfivetech.com); spf=pass (google.com: domain of linux-kernel+bounces-19376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19376-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bq17-20020a05620a469100b00783200ab6basi2371423qkb.603.2024.01.08.03.06.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 03:06:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=starfivetech.com dkim=pass dkdomain=starfivetech.com dmarc=pass fromdomain=starfivetech.com); spf=pass (google.com: domain of linux-kernel+bounces-19376-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19376-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E3AA71C21C59 for ; Mon, 8 Jan 2024 11:06:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64E8414270; Mon, 8 Jan 2024 11:06:33 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2042.outbound.protection.partner.outlook.cn [139.219.17.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBD7C14012; Mon, 8 Jan 2024 11:06:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HcRBw64Cwqm7+SNKOgdq227fAkfzk0FpPcJMunmjqwHpEuwa4NhM8Yu/+rT+2VMFWLEffsAnsY69Hc57Qak5TyHeikzUSaEYyKPT81rOcXj8KNBFeEzVJ/2hVbYyRzPrzByvjbvTjeodkoMIkkphbdSuXaPyoX/zg0dGTyBiRM4iofS6twzipw8esPXEE1MXgKhLQ5VEgfASqs9H5d6qJJTQU6stI5yzlLrHpGAQeTQnFNaUXJwwv3JFgPxkhYS2ZaFlpjPWYoUWUcCgD3xLSpXG6Z7fh4cNKtSU9UAUhZ0EKnPfGGZa8YcUVy3QkcrpPdZfwPfYv9NfhpD03DfS6g== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HSU4nVQpTjvXtwDBYUs4PXv7FpI58GzAyC84QZ+DJo8=; b=kqzwx50L4btncKEgRbhZ0uB+j4ZxGXaCAQuz6JrFSc2s1eljq3Mj95z17zSMK9xuRbFmE9KvmjP2UWO2WQaKqY0BaAkW4s4f6r2yGRSaO5XkCSM9iPfS4qVoifcu5WtoBPPUQCl0gRfvOzYU+o1OJB+p16p+sYT/i4R6dIY2KZ6v6BAdmbTzvrvXLzZrRGef0DMZGkAACR+EfQWwgeregJ3IQgJSfoq/PjYwjMhTFpVgCrxoxsmWpebdlMDYnsTzPFyuwF5Y+UH6pH/C3rNT28Jejq9AfjohAtmPjQNJFGdbb3X/TPYOcuVyApR2DhQu4/ZLuzHB5j3NgTnw2T4Pgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn (10.43.107.79) by SHXPR01MB0701.CHNPR01.prod.partner.outlook.cn (10.43.107.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.32; Mon, 8 Jan 2024 11:06:22 +0000 Received: from SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn ([fe80::e6aa:baea:fd8c:4cd2]) by SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn ([fe80::e6aa:baea:fd8c:4cd2%7]) with mapi id 15.20.7135.032; Mon, 8 Jan 2024 11:06:22 +0000 From: Minda Chen To: Conor Dooley , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , Lorenzo Pieralisi , Daire McNamara , Emil Renner Berthing , Krzysztof Kozlowski Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pci@vger.kernel.org, Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Mason Huo , Leyfoon Tan , Kevin Xie , Minda Chen Subject: [PATCH v14 0/22] Refactoring Microchip PCIe driver and add StarFive PCIe Date: Mon, 8 Jan 2024 19:05:50 +0800 Message-Id: <20240108110612.19048-1-minda.chen@starfivetech.com> X-Mailer: git-send-email 2.17.1 Content-Type: text/plain X-ClientProxiedBy: ZQ0PR01CA0014.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:5::19) To SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::15) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SHXPR01MB0863:EE_|SHXPR01MB0701:EE_ X-MS-Office365-Filtering-Correlation-Id: 79377481-3b50-424f-aa3c-08dc1039d907 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xv69FJ1Xj7on0T+dktG1syKIldFeXrGVKZHz8z2c4Y0n8aFiwy77FQcQ33d+4Ps04UIoPqs34RALq4A+EvD1mEmslSw4TRzXluOq1LMTtYFyzExAgi09pBAEaM+FHWu03Wri9hQJJvx4/Wg85/gg2pI6Mu/w3jjkYLDPluY6L29OAt4dYAyoY3Qgen2uU0spCQ+yUSb2qwjy8Eh9hCMiGnGK73KwrBQKeB20fO7YxmLoOSyo1fXyTXLJ6BRnSIa4r9qndON+HyzRA874U6jlh5xAWpPv1jw7Iy9pWvYTyTEEizuObjd1+ubj++2Ax8okv3+qWyg2oJfGGmwSkXgol8JZGeI4Ed5nZOj3YxLpdhr7Ijaizo1QP1CnDk5v4lJd8u9pajPn9Zt87rTQWc7zALr3Cv6ZNoNydIcgT5hQ7BnNGprRGb/bB9djLKhVlMvK8H2tkErty6O9nal4lIXaRsCn8q0q8h9eKjzOh8J9xlRdwzyEv4y415pyX4anCsVOagLJX+k56Z0P18F/FhQ4WcvzkYucL+RZBSVl07uUo1WIRX5NKqY1CCKd7SgSpBi/ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(39830400003)(346002)(366004)(396003)(136003)(230922051799003)(64100799003)(451199024)(1800799012)(186009)(7416002)(5660300002)(4326008)(2906002)(44832011)(8676002)(8936002)(54906003)(110136005)(66946007)(66556008)(66476007)(41320700001)(508600001)(38350700005)(6666004)(52116002)(2616005)(36756003)(107886003)(26005)(1076003)(41300700001)(40180700001)(83380400001)(38100700002)(40160700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?cMGF6IKXMKyBqZmvc/OgznLQzaXk2uwjCOQvx/aq5K3YF9ONDiwM7oGikUja?= =?us-ascii?Q?HaDddkCJfQg8gMgew2zDTdLArwVUfcUvOHiEtrqCy26yWq3e/yKiP4oB0UYz?= =?us-ascii?Q?uQIyAdLA346SA0JRdTkq/NcLhKBDnsOf+v3k9EsuQPpZONzAbN3slgqL1alJ?= =?us-ascii?Q?rkNxoH1Hq03hkdby/zlny55NUf5ZcBXWz3wQj2SRqfySgBOMq57S0CNP2w0r?= =?us-ascii?Q?gcZxmNk2xcjqpQdGwLoKzw3agqY7Dnreo5J/xaBIhanRwIXBD2nGsFtfUO+w?= =?us-ascii?Q?rwq8G2hR5UzH8pg/+lTziVSxddw4zQwnXJTpS52HLHDDam1T5UfvlPHCZJ20?= =?us-ascii?Q?XG14gMBxtmSyIXgA17f7YGzHrdifPaeyh4GdhiemM9sHuPo7DGNbTvSJLcVU?= =?us-ascii?Q?6sTfdBW0BJ7xdvv2/vtdIzc3GkKB3x1gkTTZr2j5qvwe8qntaOnfCLGIoAzH?= =?us-ascii?Q?03Cl4wwB9xp2ESpAOil+2tlKoD+pXNKLOjMN2W+KBdvZHOE60OFcOynYJFZb?= =?us-ascii?Q?1idpkIQsY3BU3KtmdUEOOSD3T3wKtVx3S3iGGCql3/EROwIUCmnYNx9uODaI?= =?us-ascii?Q?IRmNrAqRmyO23RR3Cc0uxrdg44ZEd61chuIzMI9zEYBkYhEvAOfNK1ZtA7hB?= =?us-ascii?Q?AG1xhxOgzgeUC+KZXe65ZwKLecbNGotYI2J17//gXgkh9Ht1dOmVITczeKt+?= =?us-ascii?Q?xR798Z8w/928DmpAIZMnpyJ+vmEaqyXM4IP4vYVy5NGu21NFEOTki8QZ+ZGw?= =?us-ascii?Q?XUHSKSY23AF80A7QkcJ25nxPFkPhGLNTsSlcBRpwjwuenW64+1oGok2MPren?= =?us-ascii?Q?QwtRpIsotzdBhTNbxBw12RDJa0vUjRIFWhWk4ACtGzD68H32KDHkhfiAC3CL?= =?us-ascii?Q?/L9Bp6aMQdKQK8ElkaDYWupeNI4UkwdD0QLq/kzFPBjVc0SkfUD2ONWW2cGR?= =?us-ascii?Q?UVZUuA5Vl2PfyBbaRGfJ28HAcymU5BW3XvJrqSswCK4jiOl7iAzNxtWA/Reu?= =?us-ascii?Q?su7GEnK70CruXHD+edhwWth4AWJDP0rE2Yh32M+bEp1inPeIkDqqOaSdVY42?= =?us-ascii?Q?r2UQHjXFVsKZ5XX1pYODshMubW+jSqGFjGDfaYPATpRKBNqFG4dTiVm/On2O?= =?us-ascii?Q?8d8ZKpuJj++in1NDfpl7Wbk99+tSWCQxTVz3MnZ6P+SCLeY2yY1IMwKjMxSA?= =?us-ascii?Q?wnUdgByLaF3aDYSadJ5LrMwi4XEI2jYwtLcd0fLliMC02TzT53L+LSVXuxXO?= =?us-ascii?Q?FxY1X+NzEjzehQJjmeO8Jv/Xn7F5ehk9zVac4xBoJ3tdFV/9I6OaEhr25Spw?= =?us-ascii?Q?YL/3I4f63HxznS/45dHHo5uRfxWpSoFsYjXjD5Rkp4NdGD7SQblTe956Y0T7?= =?us-ascii?Q?U5/OVa8YQa/d7AkBZAHP8VLnPkmLQRTVEcu9DGg49RCn+6Eevy3+8WldoqRq?= =?us-ascii?Q?Weo1Mo7a25DzUSL4ZBhqPuE2/rEYLePNdPQZ7AdbB49whfYeV0mqakwUXTWE?= =?us-ascii?Q?J9lES9QA5kaMudFMyR66qH7cTz5wXaYugLJpUlGnZcA3fEdlXJcdQvEyuD50?= =?us-ascii?Q?FhvNlOUWNYWPyldpi6xSgWxzs+/7zuFXyVuVzM//4U20tH/wOpONmVv4w2fW?= =?us-ascii?Q?2g=3D=3D?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79377481-3b50-424f-aa3c-08dc1039d907 X-MS-Exchange-CrossTenant-AuthSource: SHXPR01MB0863.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jan 2024 11:06:22.2517 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /RM4LZvjdGF6taS1DIvbBKSuY2cUMUm+45Sx1lNiJOj9UGqDOh6oTkfWKev7Ep6N2+byRpP+Upfly8y/FU1eLsUDXKg69KZ+bJMitNPtxV0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SHXPR01MB0701 This patchset final purpose is add PCIe driver for StarFive JH7110 SoC. JH7110 using PLDA XpressRICH PCIe IP. Microchip PolarFire Using the same IP and have commit their codes, which are mixed with PLDA controller codes and Microchip platform codes. For re-use the PLDA controller codes, I request refactoring microchip codes, move PLDA common codes to PLDA files. Desigware and Cadence is good example for refactoring codes. ---------------------------------------------------------- The refactoring patches total number is 16,(patch 1-16) which do NOT contain changing logic of codes. These patches just contain three type basic operations. (rename, modify codes to support starfive platform, and moving to common file) If these patched are all be reviewed. They can be accepted first. Refactoring patches can be devided to different groups 1. (patch 1- 3 is the prepare work of refactoring) patch1 is move PLDA XpressRICH PCIe host common properties dt-binding docs from microchip,pcie-host.yaml patch2 is move PolarFire codes to PLDA directory. patch3 is move PLDA IP register macros to plda-pcie.h 2. (patch4 - 6 is processing and re-use PCIe host instance) patch4 is add bridge_addr field to PCIe host instance. patch5 is rename data structure in microchip codes. patch6 is moving two data structures to head file 3. (patch 7 - 9 are for re-use two PCIe setup function) patch7 is rename two setup functions in microchip codes, prepare to move to common file. patch8 is change the arguments of plda_pcie_setup_iomems() patch9 is move the two setup functions to common file pcie-plda-host.c 4.(patch 10 - 16 are for re-use interupt processing codes) patch10 is rename the IRQ related functions, prepare to move to pcie-plda-host.c patch 11 - 15 is modify the interrupt event codes, preparing for support starfive and microchip two platforms. patch16 is move IRQ related functions to pcie-plda-host.c ------------------------------------------------------------ The remainder patches (patch 17 -22) are not refactoring patch. They are for adding StarFive codes and dont modify the microchip's codes. patch17 is Add event bitmap for mask unused/unimpementes interrupts patch18 is Add host init/deinit functions. patch19 is add StarFive JH7110 PCIe dt-binding doc. patch20 is Add a PCIe delay time macro patch21 is add StarFive JH7110 Soc PCIe codes. patch22 is Starfive dts config This patchset is base on v6.7 previous version: v9:https://patchwork.kernel.org/project/linux-pci/cover/20231020104341.63157-1-minda.chen@starfivetech.com/ v10:https://patchwork.kernel.org/project/linux-pci/cover/20231031115430.113586-1-minda.chen@starfivetech.com/ v11:https://patchwork.kernel.org/project/linux-pci/cover/20231115114912.71448-1-minda.chen@starfivetech.com/ v12:https://patchwork.kernel.org/project/linux-pci/cover/20231206105839.25805-1-minda.chen@starfivetech.com/ v13:https://patchwork.kernel.org/project/linux-pci/cover/20231214072839.2367-1-minda.chen@starfivetech.com/ change: v14: Add a new patch 17. Add interrupt eventmap to mask non-implemented or unused interrupt. patch3: rename the PLDA interrupts macro name. patch9: remove the redundant head file. patch10,11: modify the commit message suggested by Lorrenzo. patch12: modify the commit message. patch14, 15: PLDA codes will handle DMA interrupts. Modify the commit message. patch18 remove plda default events. This is implemented by vendor. patch21 Add plda_event instance stf_pcie_event. v13: patch14: 1. Add plda_get_event() function. This can be compare with mc_get_event() easily and track the codes changes in case in the future.. 2. The host event_ops is directly set to plda host port. 3. Setting default host event_ops instead of checking event ops. patch15:1. Add PLDA event irq_chip instead of event_domain_ops, The event_domain_ops can be re-used. 2. The host event irq_chip is directly set to plda host port. 3. Add PLDA event irqchip ops codes. 4. Remove Conor's review tag due to whole patch have been changed. patch16: Also move the new added PLDA event codes. patch18: Add plda host init and deinit function only. v12: patch18: modify the commit message and add starfive review tag. Add PCIE_RESET_CONFIG_DEVICE_WAIT_MS to patch 19. patch21: Add disable runtime pm function in starfive_pcie_remove() Add "depens on ARCH_STARFIVE || COMPILE_TEST" in Starfive PCie Kconfig v11: check and modify some commit messages again. All the codes are the same with v10. v10: All the commit message set to fit in 75 columns. All the codes fit in less than 80 colunms. patch 14: Commit message changes suggested by Conor. patch 21: Add 100 ms delay macro to pci.h generic phy pointer related codes moving to pcie-starfive.c This patch Change pcie-starfive only, bus_ops move to patch 16. Some Codes changes suggested by Bjorn. v9: v8 patch 10 squash to v9 patch 12, v8 patch 18 squash to v9 patch 16. patch 4 - 16: Add new review tags and add more accurate commit messages. patch 18: move the plda_pcie_host_init/deinit from patch 19. Make plda driver become to whole driver. Kevin Xie (1): PCI: Add PCIE_RESET_CONFIG_DEVICE_WAIT_MS waiting time value Minda Chen (21): dt-bindings: PCI: Add PLDA XpressRICH PCIe host common properties PCI: microchip: Move pcie-microchip-host.c to plda directory PCI: microchip: Move PLDA IP register macros to pcie-plda.h PCI: microchip: Add bridge_addr field to struct mc_pcie PCI: microchip: Rename two PCIe data structures PCI: microchip: Move PCIe host data structures to plda-pcie.h PCI: microchip: Rename two setup functions PCI: microchip: Change the argument of plda_pcie_setup_iomems() PCI: microchip: Move setup functions to pcie-plda-host.c PCI: microchip: Rename interrupt related functions PCI: microchip: Add num_events field to struct plda_pcie_rp PCI: microchip: Add request_event_irq() callback function PCI: microchip: Add INTx and MSI event num to struct plda_event PCI: microchip: Add get_events() callback and add PLDA get_event() PCI: microchip: Add event irqchip field to host port and add PLDA irqchip PCI: microchip: Move IRQ functions to pcie-plda-host.c pci: plda: Add event bitmap field to struct plda_pcie_rp PCI: plda: Add host init/deinit and map bus functions dt-bindings: PCI: Add StarFive JH7110 PCIe controller PCI: starfive: Add JH7110 PCIe controller riscv: dts: starfive: add PCIe dts configuration for JH7110 .../bindings/pci/microchip,pcie-host.yaml | 55 +- .../pci/plda,xpressrich3-axi-common.yaml | 75 ++ .../bindings/pci/starfive,jh7110-pcie.yaml | 120 ++++ MAINTAINERS | 19 +- .../jh7110-starfive-visionfive-2.dtsi | 64 ++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 86 +++ drivers/pci/controller/Kconfig | 9 +- drivers/pci/controller/Makefile | 2 +- drivers/pci/controller/plda/Kconfig | 30 + drivers/pci/controller/plda/Makefile | 4 + .../{ => plda}/pcie-microchip-host.c | 615 ++--------------- drivers/pci/controller/plda/pcie-plda-host.c | 651 ++++++++++++++++++ drivers/pci/controller/plda/pcie-plda.h | 272 ++++++++ drivers/pci/controller/plda/pcie-starfive.c | 473 +++++++++++++ drivers/pci/pci.h | 16 + 15 files changed, 1875 insertions(+), 616 deletions(-) create mode 100644 Documentation/devicetree/bindings/pci/plda,xpressrich3-axi-common.yaml create mode 100644 Documentation/devicetree/bindings/pci/starfive,jh7110-pcie.yaml create mode 100644 drivers/pci/controller/plda/Kconfig create mode 100644 drivers/pci/controller/plda/Makefile rename drivers/pci/controller/{ => plda}/pcie-microchip-host.c (54%) create mode 100644 drivers/pci/controller/plda/pcie-plda-host.c create mode 100644 drivers/pci/controller/plda/pcie-plda.h create mode 100644 drivers/pci/controller/plda/pcie-starfive.c base-commit: 0dd3ee31125508cd67f7e7172247f05b7fd1753a -- 2.17.1