From patchwork Thu Oct 27 08:57:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achal Verma X-Patchwork-Id: 11669 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp115965wru; Thu, 27 Oct 2022 02:03:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4utZ7bS8uAuLtswcsgE14imYxz9rLlftYlNIdt98d3nWLwcZQQjpTn1X/iUtiY2INZ5mVH X-Received: by 2002:a05:6402:46:b0:45c:bd68:6ab0 with SMTP id f6-20020a056402004600b0045cbd686ab0mr44956988edu.16.1666861439208; Thu, 27 Oct 2022 02:03:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666861439; cv=none; d=google.com; s=arc-20160816; b=K51j9lMBvvbCtq1+/s4fM0ryfW1VfJK4zKg0iDX7qITRXA0YQnQ3HaB+8Cq0FCcgDl 9hFDfP3nmHj79JsuvXYUHSxUDG2f98G2cO4Zzc2DDWz9VRXuD73bY2hZnY90KNCrvA+o uHCcfn6gsMgputUsUOKte/6SGa9nzLlBldZ/64a30ZulxFhJKCvCr8d/ClAWBecmQtJH U8/Sn3q6FHi9UAvczTdqjiinDVaA750RSx5PQrSNrzOVzG8zdf8jc1IhKs9KGquDFn2c YP1tspIZQIhKdykoQ6Z1Q2WgNeso1Kr3tAMZ8+C+fh75J9k3mt9LzrhoXY7RK/KMOJvw d8kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=gFm8sp5qf1A44g2gxMYqAMGX+E0SVtEIzHzqkRWo0No=; b=oROPkN+gbPjv+opsGxxlUPKEatVeZWfmjwX+Q9wrmccdwoddBFao2JfeXJApjQkEze paBKxf3QfwxOqffWdGAedcUarTwxw+MzjJi4FTuiCn5yHH4bPKuCYfNxTJizyr8QHPb5 +IbOQXX72EyinZrHY48iWeSl/6nsRfnbVvqRw4uoLeQ7iPEnjwt4oraMFBD/wkzWFs9M 6dWsFJ/SlZSeyFCPZWgav2O9bzdAKRDLNB35QKPk/NAww6Q3VPMmDfPQ3Gecd1WeuQIR 14T+Jj9RzaxuBfrkyVCvsKoY1xhzou5oKdhrQgoRwmNrHrELWdls8Sh7+CsI+hmV9E1Q Ktpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=O2HbS3KP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id tc2-20020a1709078d0200b0077f2779c178si869315ejc.254.2022.10.27.02.03.35; Thu, 27 Oct 2022 02:03:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=O2HbS3KP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235123AbiJ0I5j (ORCPT + 99 others); Thu, 27 Oct 2022 04:57:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233815AbiJ0I5h (ORCPT ); Thu, 27 Oct 2022 04:57:37 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA31CCABCF; Thu, 27 Oct 2022 01:57:36 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29R8vNHe012991; Thu, 27 Oct 2022 03:57:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1666861043; bh=gFm8sp5qf1A44g2gxMYqAMGX+E0SVtEIzHzqkRWo0No=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=O2HbS3KP16Z42F1Ss5oASFT6z5Uf7Yhj7kVSPDrzXSbuP7htGC9EieYhDKxkVTr4c 59pwnI9HXNxiru1GNhZRSOdgwF0JYsWflwJKd64FSS2OJTxzURxVGvavxJuMVoa2UV 0n2k1GH9EcQUMncoFkTDKc1fGh08IiPsuphWvak4= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29R8vNL2006154 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Oct 2022 03:57:23 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Thu, 27 Oct 2022 03:57:22 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Thu, 27 Oct 2022 03:57:22 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29R8vLos082245; Thu, 27 Oct 2022 03:57:22 -0500 From: Achal Verma To: Tom Joseph , Lorenzo Pieralisi , Rob Herring , Krzysztof Wilczy_ski , Bjorn Helgaas , Kishon Vijay Abraham I , Vignesh Raghavendra CC: , , , , Achal Verma , Milind Parab Subject: [PATCH 2/2] PCI: j721e: Add support to build pci-j721e as module. Date: Thu, 27 Oct 2022 14:27:18 +0530 Message-ID: <20221027085718.291510-3-a-verma1@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221027085718.291510-1-a-verma1@ti.com> References: <20221027085718.291510-1-a-verma1@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747830900313191606?= X-GMAIL-MSGID: =?utf-8?q?1747830900313191606?= Add support to build pci-j721e as module. Signed-off-by: Achal Verma --- drivers/pci/controller/cadence/Kconfig | 6 +++--- drivers/pci/controller/cadence/pci-j721e.c | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/pci/controller/cadence/Kconfig b/drivers/pci/controller/cadence/Kconfig index 693c41fe32ce..54464c9b3b29 100644 --- a/drivers/pci/controller/cadence/Kconfig +++ b/drivers/pci/controller/cadence/Kconfig @@ -43,10 +43,10 @@ config PCIE_CADENCE_PLAT_EP different vendors SoCs. config PCI_J721E - bool + tristate config PCI_J721E_HOST - bool "TI J721E PCIe platform host controller" + tristate "TI J721E PCIe platform host controller" depends on OF select PCIE_CADENCE_HOST select PCI_J721E @@ -56,7 +56,7 @@ config PCI_J721E_HOST core. config PCI_J721E_EP - bool "TI J721E PCIe platform endpoint controller" + tristate "TI J721E PCIe platform endpoint controller" depends on OF depends on PCI_ENDPOINT select PCIE_CADENCE_EP diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c index a82f845cc4b5..48c6e5b8da53 100644 --- a/drivers/pci/controller/cadence/pci-j721e.c +++ b/drivers/pci/controller/cadence/pci-j721e.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -566,4 +567,7 @@ static struct platform_driver j721e_pcie_driver = { .suppress_bind_attrs = true, }, }; -builtin_platform_driver(j721e_pcie_driver); +module_platform_driver(j721e_pcie_driver); + +MODULE_AUTHOR("Kishon Vijay Abraham I "); +MODULE_LICENSE("GPL v2");