From patchwork Sun Jan 8 15:57:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achal Verma X-Patchwork-Id: 3707 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1757142wrt; Sun, 8 Jan 2023 07:59:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXtdzV2UUT2hfVE26YrrKhVViKKnALA0m0tT0haWVk/hVHAcIP5yoOD400Wy0x69ssya64Mk X-Received: by 2002:a05:6402:550e:b0:47d:ca3a:3b32 with SMTP id fi14-20020a056402550e00b0047dca3a3b32mr67606291edb.9.1673193557531; Sun, 08 Jan 2023 07:59:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673193557; cv=none; d=google.com; s=arc-20160816; b=B8a9SbUrDW1TQq1GVCMFfqcdacmDJGR5S+Ge4MBRJvcRxGsXrjOmPA7AIKf56aKEBJ Ftuh5iERPsoKezAcP//WAD20UAx5SN3liYDz6U2/db+ROJKQV+qN7Fe8D6BpCAM25e4/ GHO0/UOf3VCA1s6sm70HqLUp5K/VPH0TLUTdslHRM2bjvMv5UlD9UUAwxS6H3miQJmZq WMwkITA7LyriEqwJwkjdqtKLt6aD51RzLEkmYLNT0ZqqcIzBoFO4yvYug1gVmiayfrWq AyHnPIne0GbMHaz37CIRkTwNd3oFbhltcUQIa+qYYCfbR+Ww03XKySHxE3H19J5/U6kE At2Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=4RpCFnnGJ3Or8AcQasz5O0BD+9DLwxSIyjJFxPI0xFA=; b=uLdLzywOxocnMbaLxzU/9BiP3VhqYigUuXM0neZVjzQPHaYDLh37UICqK/YlOljosD 6dQJSsm+skIH/eZFweSsfoo4buxBvFK9sopOH0usVA7UjBHBrMYu2fKRBbSoWQru+3NZ XBliZT1Pkvmy275oV9JghwRQpMGt0UMNUoov+9JBScWvGmIjQofwjUiPaVxbjjMFkl5f GJjPfAjYdy+EVhnG/jhRYqOdZHgrmLRp3nYhusdFoo2eoxXoPOptFn+P8b8FOv4CroxJ qyhfd7pmMYj5um641/JUE3nngExUcXK/ygEfaS9NxeKfTN0W+qDpjsaXnzJGzE9CgHmV pF/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=TAOwjiFk; 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 q16-20020a50c350000000b0048f81bf24dfsi6814472edb.143.2023.01.08.07.58.49; Sun, 08 Jan 2023 07:59:17 -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=TAOwjiFk; 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 S231272AbjAHP6X (ORCPT + 99 others); Sun, 8 Jan 2023 10:58:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjAHP6V (ORCPT ); Sun, 8 Jan 2023 10:58:21 -0500 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5EE6BCB5; Sun, 8 Jan 2023 07:58:20 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 308FvutR077257; Sun, 8 Jan 2023 09:57:56 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1673193476; bh=4RpCFnnGJ3Or8AcQasz5O0BD+9DLwxSIyjJFxPI0xFA=; h=From:To:CC:Subject:Date; b=TAOwjiFk2qjVFqPWSt1sB+Bhth2mVEtFei5gNMyGq3bG8EjKbtU/O/rQwCGrzLBn1 PWMPbFuw5IoVj2767+FStbduYXV30zN9eHoc7Gfh8VijZfOugZze+tmAnuuSNgTPDW uQ/P3xSEhI/efqseNoGS67ZUOcFUWc6QR6IxOHuI= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 308Fvufb041755 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 8 Jan 2023 09:57:56 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Sun, 8 Jan 2023 09:57:56 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE113.ent.ti.com (10.64.6.34) 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; Sun, 8 Jan 2023 09:57:56 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 308Fvtgr113997; Sun, 8 Jan 2023 09:57:55 -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 v2 0/2] Add support to build pci-j721e as a module. Date: Sun, 8 Jan 2023 21:27:53 +0530 Message-ID: <20230108155755.2614147-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-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?1754470607776201392?= X-GMAIL-MSGID: =?utf-8?q?1754470607776201392?= Patch series to add support to build pci-j721e as module. It requires pcie-cadence library to be built as a module too. Changes from v1 to v2: *)Resolve build failure of pci-j721e.o module because of its dependency on pcie-cadence-host.o in following configuration as Reported-by: kernel test robot CONFIG_PCIE_CADENCE=y CONFIG_PCIE_CADENCE_HOST=m CONFIG_PCIE_CADENCE_EP=y CONFIG_PCIE_CADENCE_PLAT=y CONFIG_PCIE_CADENCE_PLAT_EP=y CONFIG_PCI_J721E=y CONFIG_PCI_J721E_HOST=m CONFIG_PCI_J721E_EP=y Achal Verma (2): PCI: cadence: Add support to build pcie-cadence library as module. PCI: j721e: Add support to build pci-j721e as module. drivers/pci/controller/cadence/Kconfig | 16 ++++++++-------- drivers/pci/controller/cadence/pci-j721e.c | 6 +++++- drivers/pci/controller/cadence/pcie-cadence-ep.c | 4 ++++ .../pci/controller/cadence/pcie-cadence-host.c | 5 +++++ drivers/pci/controller/cadence/pcie-cadence.c | 9 +++++++++ drivers/pci/controller/cadence/pcie-cadence.h | 4 ++-- 6 files changed, 33 insertions(+), 11 deletions(-)