From patchwork Tue Dec 27 10:41:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achal Verma X-Patchwork-Id: 36817 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1328887wrt; Tue, 27 Dec 2022 02:45:59 -0800 (PST) X-Google-Smtp-Source: AMrXdXs3DkL3q3Vb537/r0k8UtLa+6CXMqk/WXgx3FsYD3AjdFGNFi7ihhTLaaoOabFX0cYT2CkW X-Received: by 2002:a05:6402:321a:b0:475:5695:62b3 with SMTP id g26-20020a056402321a00b00475569562b3mr20194356eda.16.1672137959028; Tue, 27 Dec 2022 02:45:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672137959; cv=none; d=google.com; s=arc-20160816; b=l+wUyxSCEtpIzadkfczBFbZgLpzHQox4Y4WhngRMUw+Sz7Rna5DLvS6E0pLhHxkbGP +uGkw+Y2vEje/vLZOq2cZRJ3gB2ZgysJ+w6+IKQl5uWq2tkr5Ve5W0BW4BIaMGp7fquH a1lM51R3ITOHFHqQsT7F1Q3lzEEj9/KTNzXkDYoaFbPZPkWAsSgyU3nCtIq14gHoOY0r zhMCjzows5UxBaijqjdCRjQ9X6pr83++K35Z6Ju3kz0iDr9smDpuAgyCWoYoGotqC21r P6Yrnlnw7G71k636sTaIgJnaVdQA2CEGMzhxvbv3htiY34K0C4ZL+q7AL+Au6sCptb50 kiBA== 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=MUAVMn74IGXYLv7Q++PQxdFGnFfhRT4Sr3sH7enrpNA=; b=hho+WMFCMM5wnb9hH0pecGr0KD6/A2l8UT+YEsE9/lggT0KPD5dNLg7RyIPo59Wx7X GpT9KF4DGmE37bON7dB/zOYo6JUSfDrCDN32O4gkwdcpyJgxGDzKCi1aMxZ65s2KHupC PkacaXyiCKVO0A1aRYbM92QbFgti0qyocZIRYKvMMn29XArEAJaD/M01Zdpc5OcEku0S gmJaFuIkV4bOpwyUhhNsasr3gFYLTGKpcpZGCqt2i0eoo0onIw5BEC422TL9l3Da++C2 iFqzupQlY8sClH8Qr6k1PpGEd1sHsoG7N+y2z0/IuOozQY2HnNU7TBL0K7mp3/swfd5v uq5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vBHHD6Wq; 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 y9-20020a056402440900b00478b85eed04si12747209eda.561.2022.12.27.02.45.33; Tue, 27 Dec 2022 02:45:59 -0800 (PST) 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=vBHHD6Wq; 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 S231167AbiL0KmV (ORCPT + 99 others); Tue, 27 Dec 2022 05:42:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbiL0KmQ (ORCPT ); Tue, 27 Dec 2022 05:42:16 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E081DD7B; Tue, 27 Dec 2022 02:42:14 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2BRAfwDe043730; Tue, 27 Dec 2022 04:41:58 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1672137718; bh=MUAVMn74IGXYLv7Q++PQxdFGnFfhRT4Sr3sH7enrpNA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vBHHD6WqfoaJLLLY67B3L5ch54N7XF//vCunanQ9pXA1KUHpGcf/QEDKOcYXeTiPq iC+3pHS4HbLphA6cpnmAdMHMyZaz8iyQnG+FDoldDoHzZzirpNCJ5/PS1SG+6OZia4 SmfSJUVpjqZwQx0P6889NzSg+k8G01M1lfRUvJoA= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2BRAfwww005331 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Dec 2022 04:41:58 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 27 Dec 2022 04:41:58 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) 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.16 via Frontend Transport; Tue, 27 Dec 2022 04:41:58 -0600 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 2BRAfvhm085478; Tue, 27 Dec 2022 04:41:58 -0600 From: Achal Verma To: Tom Joseph , Lorenzo Pieralisi , Rob Herring , Krzysztof Wilczy_ski , Bjorn Helgaas , Vignesh Raghavendra CC: , , , , Achal Verma , Milind Parab Subject: [PATCH 2/2] PCI: j721e: Add support to build pci-j721e as module. Date: Tue, 27 Dec 2022 16:11:54 +0530 Message-ID: <20221227104154.1022426-3-a-verma1@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221227104154.1022426-1-a-verma1@ti.com> References: <20221227104154.1022426-1-a-verma1@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 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?1753363732817634403?= X-GMAIL-MSGID: =?utf-8?q?1753363732817634403?= 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 cc83a8925ce0..c4017fa6ae61 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 @@ -565,4 +566,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");