From patchwork Mon Sep 26 18:18:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 609937 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96B7DC32771 for ; Mon, 26 Sep 2022 18:22:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbiIZSWo (ORCPT ); Mon, 26 Sep 2022 14:22:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbiIZSWU (ORCPT ); Mon, 26 Sep 2022 14:22:20 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4546B6F56C for ; Mon, 26 Sep 2022 11:18:57 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id v4so7267821pgi.10 for ; Mon, 26 Sep 2022 11:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=XxwI1lYNO39OjWf2d6ldhB9aHI8zuvkxn0q3dnQxszo=; b=iVz3vqrj/T1ywRrTCiHZSPbDCmMkYJTH0qD5syWgfCu72i4LPxBekt2F+SHBlK8t6E 8DGkugVtwh6/AQCfO5FYarI34Xynd+Uz9gblBiEgdCKzN2U/fGZaedeG2rtTtvBK4UMM XpDqAkHHTgqqqlJrjMnckfjt+1uvh4RiifoLRvRSMieFWqlmP3kwiljm6roZjn60XVDI 1G2DcAz/cv7Gg3coJFLHBfGT622A73D+Esrx222/kodZlXfddmimnPXuusCwSLGj4M8Z x7vnF7oFghuqEQ9EN5AKiBBBHtB/bPLlhj2kq73xvmF9tDjXDel1uVcqr8b9nApAHZHz bOxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=XxwI1lYNO39OjWf2d6ldhB9aHI8zuvkxn0q3dnQxszo=; b=p5wfwQqKQuBRE6vWSspfU+JMMMniOpEizSmUqsf5FcGbpWrfzaWU2QAgE7wx8yElhj 5l9KAPlk8xOFVNxr9hqXzklewOdXHVISqwIMVaozgAexZRxoOs4b4pQFMOmj5s3nOR1K PyE/HUlURgwPRADxH84VIxtyu7UtMbZk9u//0O0xuYO1V2WP8OiXAAOL4gyKpUhJoKRk Ba6EhJ7oafStoE7udzONPWbsr2ZtU+Ri9T00tr6s1uOhiBtJYEmNSKlz02v08nicKwvd MNt1fmcECTT0lY4fcWLwROpIkA4sjbHVdZY5G8k6hYJ7nBpiL1RyBvt8HqT8oQA/+p+o nbpQ== X-Gm-Message-State: ACrzQf09tUuPeoJK1OH+UH063DwQpLGSyk1GSWMtqitIyJHmaSUG1fh3 1w1Kf7FCLIDkjEH4L0CLw44CyA== X-Google-Smtp-Source: AMsMyM7o0uYgZR63cSzBGCvK/km8m/uY0V3mtzdIkpES1S3ItbVhIVp1LYEKmhlteR16wcvMb9JSbw== X-Received: by 2002:a05:6a00:234a:b0:542:f9f2:72e5 with SMTP id j10-20020a056a00234a00b00542f9f272e5mr24782122pfj.34.1664216336816; Mon, 26 Sep 2022 11:18:56 -0700 (PDT) Received: from localhost ([76.146.1.42]) by smtp.gmail.com with ESMTPSA id 67-20020a621946000000b005379c1368e4sm12886365pfz.179.2022.09.26.11.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 11:18:55 -0700 (PDT) From: Kevin Hilman To: Peter Ujfalusi , dmaengine@vger.kernel.org Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nicolas Frayer Subject: [PATCH 3/3] dma/ti: convert PSIL to be buildable as module Date: Mon, 26 Sep 2022 11:18:48 -0700 Message-Id: <20220926181848.2917639-4-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220926181848.2917639-1-khilman@baylibre.com> References: <20220926181848.2917639-1-khilman@baylibre.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org map symbols need EXPORT_SYMBOL and files need MODULE_LICENSE. Signed-off-by: Kevin Hilman --- drivers/dma/ti/Kconfig | 3 ++- drivers/dma/ti/k3-psil-am62.c | 4 ++++ drivers/dma/ti/k3-psil-am64.c | 4 ++++ drivers/dma/ti/k3-psil-am654.c | 4 ++++ drivers/dma/ti/k3-psil-j7200.c | 4 ++++ drivers/dma/ti/k3-psil-j721e.c | 4 ++++ drivers/dma/ti/k3-psil-j721s2.c | 4 ++++ drivers/dma/ti/k3-psil.c | 2 ++ 8 files changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/dma/ti/Kconfig b/drivers/dma/ti/Kconfig index f196be3b222f..2adc2cca10e9 100644 --- a/drivers/dma/ti/Kconfig +++ b/drivers/dma/ti/Kconfig @@ -56,7 +56,8 @@ config TI_K3_UDMA_GLUE_LAYER If unsure, say N. config TI_K3_PSIL - bool + tristate + default TI_K3_UDMA config TI_DMA_CROSSBAR bool diff --git a/drivers/dma/ti/k3-psil-am62.c b/drivers/dma/ti/k3-psil-am62.c index 2b6fd6e37c61..7c4ca85f68b1 100644 --- a/drivers/dma/ti/k3-psil-am62.c +++ b/drivers/dma/ti/k3-psil-am62.c @@ -4,6 +4,7 @@ */ #include +#include #include "k3-psil-priv.h" @@ -184,3 +185,6 @@ struct psil_ep_map am62_ep_map = { .dst = am62_dst_ep_map, .dst_count = ARRAY_SIZE(am62_dst_ep_map), }; +EXPORT_SYMBOL_GPL(am62_ep_map); + +MODULE_LICENSE("GPL v2"); diff --git a/drivers/dma/ti/k3-psil-am64.c b/drivers/dma/ti/k3-psil-am64.c index 9fdeaa11a4fc..c579374feef9 100644 --- a/drivers/dma/ti/k3-psil-am64.c +++ b/drivers/dma/ti/k3-psil-am64.c @@ -5,6 +5,7 @@ */ #include +#include #include "k3-psil-priv.h" @@ -156,3 +157,6 @@ struct psil_ep_map am64_ep_map = { .dst = am64_dst_ep_map, .dst_count = ARRAY_SIZE(am64_dst_ep_map), }; +EXPORT_SYMBOL_GPL(am64_ep_map); + +MODULE_LICENSE("GPL v2"); diff --git a/drivers/dma/ti/k3-psil-am654.c b/drivers/dma/ti/k3-psil-am654.c index a896a15908cf..10db638b1178 100644 --- a/drivers/dma/ti/k3-psil-am654.c +++ b/drivers/dma/ti/k3-psil-am654.c @@ -5,6 +5,7 @@ */ #include +#include #include "k3-psil-priv.h" @@ -173,3 +174,6 @@ struct psil_ep_map am654_ep_map = { .dst = am654_dst_ep_map, .dst_count = ARRAY_SIZE(am654_dst_ep_map), }; +EXPORT_SYMBOL_GPL(am654_ep_map); + +MODULE_LICENSE("GPL v2"); diff --git a/drivers/dma/ti/k3-psil-j7200.c b/drivers/dma/ti/k3-psil-j7200.c index 5ea63ea74822..b7c638a5d140 100644 --- a/drivers/dma/ti/k3-psil-j7200.c +++ b/drivers/dma/ti/k3-psil-j7200.c @@ -5,6 +5,7 @@ */ #include +#include #include "k3-psil-priv.h" @@ -173,3 +174,6 @@ struct psil_ep_map j7200_ep_map = { .dst = j7200_dst_ep_map, .dst_count = ARRAY_SIZE(j7200_dst_ep_map), }; +EXPORT_SYMBOL_GPL(j7200_ep_map); + +MODULE_LICENSE("GPL v2"); diff --git a/drivers/dma/ti/k3-psil-j721e.c b/drivers/dma/ti/k3-psil-j721e.c index 34e3fc565a37..759e4a156acd 100644 --- a/drivers/dma/ti/k3-psil-j721e.c +++ b/drivers/dma/ti/k3-psil-j721e.c @@ -5,6 +5,7 @@ */ #include +#include #include "k3-psil-priv.h" @@ -296,3 +297,6 @@ struct psil_ep_map j721e_ep_map = { .dst = j721e_dst_ep_map, .dst_count = ARRAY_SIZE(j721e_dst_ep_map), }; +EXPORT_SYMBOL_GPL(j721e_ep_map); + +MODULE_LICENSE("GPL v2"); diff --git a/drivers/dma/ti/k3-psil-j721s2.c b/drivers/dma/ti/k3-psil-j721s2.c index a488c2250623..fd9e56851e59 100644 --- a/drivers/dma/ti/k3-psil-j721s2.c +++ b/drivers/dma/ti/k3-psil-j721s2.c @@ -4,6 +4,7 @@ */ #include +#include #include "k3-psil-priv.h" @@ -173,3 +174,6 @@ struct psil_ep_map j721s2_ep_map = { .dst = j721s2_dst_ep_map, .dst_count = ARRAY_SIZE(j721s2_dst_ep_map), }; +EXPORT_SYMBOL_GPL(j721s2_ep_map); + +MODULE_LICENSE("GPL v2"); diff --git a/drivers/dma/ti/k3-psil.c b/drivers/dma/ti/k3-psil.c index 761a384093d2..8b6533a1eeeb 100644 --- a/drivers/dma/ti/k3-psil.c +++ b/drivers/dma/ti/k3-psil.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -101,3 +102,4 @@ int psil_set_new_ep_config(struct device *dev, const char *name, return 0; } EXPORT_SYMBOL_GPL(psil_set_new_ep_config); +MODULE_LICENSE("GPL v2");