From patchwork Thu Aug 17 12:08:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achal Verma X-Patchwork-Id: 13356350 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A6BFFC27C7A for ; Thu, 17 Aug 2023 12:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :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=btsyOdfqcIJn4PYN1Usm0XYyjnbobccBWMkZKoRB/JY=; b=DSV0MU/GGJWeMW fB9e7xlrAH1/MkmyrvalBJAe0g/8iPCUb+cJU6Wa1R5u64IyRPvwcUBexMDKn2TE/gY/YkDYQe/a6 rCR4YeOnN8OihrHy3CcTnwrXm2NvJPx1Vxf8jKqNpelzMPvsGUPoOdE6FJQLHMTcIb+YIONUeDUvH EE3HUL2o9XZmENOv/IDn9hjoRWMaD4v+//2LvmK73y8sW2nUvqCTLZlBskRETJPQbXS3lEQzGG0Ar VMmWX6RlISmLmfiyyj+4Xf+PKwWxPpgwVdnJrKfy1gvK91Txc3sPyj2GFiFA9U38byO9a5Frn9Z+C wfP5boLlihwdpzRu670w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qWbno-006LjZ-2q; Thu, 17 Aug 2023 12:08:36 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qWbnm-006Liw-0D for linux-arm-kernel@lists.infradead.org; Thu, 17 Aug 2023 12:08:35 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37HC8Oll076675; Thu, 17 Aug 2023 07:08:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1692274104; bh=v2w3PtpvpeBzi4+5Dp62j/KXIWRJIJkrU2tz8eBNJ10=; h=From:To:CC:Subject:Date; b=IZA7jAF6pw9gknwzb642apS4p9yw/IUKVFsA2diOmHY/JIAI7p59j6CW+D/+TXRmI 5JW7KtO0SLCThZiArXJNOADoUEQeTIWDDJBUPBhHHGLWsM2ilmarRch7KsfadcLiVR mK7qcKJtBUFwLR150BLqIlH5aZHLQaOaqHwSN9lM= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37HC8OLs016719 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 17 Aug 2023 07:08:24 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 17 Aug 2023 07:08:24 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 17 Aug 2023 07:08:24 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37HC8Ni5025391; Thu, 17 Aug 2023 07:08:23 -0500 From: Achal Verma To: Vignesh Raghavendra , Tom Joseph , Lorenzo Pieralisi , Krzysztof Wilczy_ski , Rob Herring , Bjorn Helgaas CC: , , , , Achal Verma Subject: [RFC PATCH 0/2] Add support to build pci-j721e as a kernel module Date: Thu, 17 Aug 2023 17:38:21 +0530 Message-ID: <20230817120823.1158766-1-a-verma1@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230817_050834_184268_42130357 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org pci-j721e driver is not required during linux boot, thus it should be build as a loadable kernel module. This series add support to build pci-j721e driver and pcie-cadence library as lodable modules. Last posted: https://lore.kernel.org/all/20230513184620.2200916-1-a-verma1@ti.com/#t Achal Verma (1): PCI: j721e: Add support to build pci-j721e as a kernel module Kishon Vijay Abraham I (1): PCI: cadence: Add support to build pcie-cadence library as a kernel module drivers/pci/controller/cadence/Kconfig | 12 +- drivers/pci/controller/cadence/Makefile | 2 + drivers/pci/controller/cadence/pci-j721e-ep.c | 130 ++++++ .../pci/controller/cadence/pci-j721e-host.c | 208 ++++++++++ drivers/pci/controller/cadence/pci-j721e.c | 382 +++--------------- drivers/pci/controller/cadence/pci-j721e.h | 96 +++++ .../pci/controller/cadence/pcie-cadence-ep.c | 4 + .../controller/cadence/pcie-cadence-host.c | 27 ++ drivers/pci/controller/cadence/pcie-cadence.c | 21 + drivers/pci/controller/cadence/pcie-cadence.h | 11 +- 10 files changed, 553 insertions(+), 340 deletions(-) create mode 100644 drivers/pci/controller/cadence/pci-j721e-ep.c create mode 100644 drivers/pci/controller/cadence/pci-j721e-host.c create mode 100644 drivers/pci/controller/cadence/pci-j721e.h