From: "Péter Ujfalusi" <peter.ujfalusi@gmail.com>
To: Kevin Hilman <khilman@baylibre.com>, dmaengine@vger.kernel.org
Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Nicolas Frayer <nfrayer@baylibre.com>
Subject: Re: [PATCH v2 3/3] dma/ti: convert PSIL to be buildable as module
Date: Wed, 28 Sep 2022 16:53:28 +0300 [thread overview]
Message-ID: <9e628dc7-6453-7a96-87ca-9f1efa8bedc7@gmail.com> (raw)
In-Reply-To: <20220927230804.4085579-4-khilman@baylibre.com>
Hi Kevin,
On 28/09/2022 02:08, Kevin Hilman wrote:
> Combine all the SoC specific files into a single lib that can be
> built-in or built as a module.
>
> Signed-off-by: Kevin Hilman <khilman@baylibre.com>
> ---
> drivers/dma/ti/Kconfig | 3 ++-
> drivers/dma/ti/Makefile | 15 ++++++++-------
> drivers/dma/ti/k3-psil.c | 2 ++
> 3 files changed, 12 insertions(+), 8 deletions(-)
>
> 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/Makefile b/drivers/dma/ti/Makefile
> index d3a303f0d7c6..383bbd6d12b9 100644
> --- a/drivers/dma/ti/Makefile
> +++ b/drivers/dma/ti/Makefile
> @@ -4,11 +4,12 @@ obj-$(CONFIG_TI_EDMA) += edma.o
> obj-$(CONFIG_DMA_OMAP) += omap-dma.o
> obj-$(CONFIG_TI_K3_UDMA) += k3-udma.o
> obj-$(CONFIG_TI_K3_UDMA_GLUE_LAYER) += k3-udma-glue.o
> -obj-$(CONFIG_TI_K3_PSIL) += k3-psil.o \
> - k3-psil-am654.o \
> - k3-psil-j721e.o \
> - k3-psil-j7200.o \
> - k3-psil-am64.o \
> - k3-psil-j721s2.o \
> - k3-psil-am62.o
> +obj-$(CONFIG_TI_K3_PSIL) += k3-psil-lib.o
> +k3-psil-lib-objs := k3-psil.o \
> + k3-psil-am654.o \
> + k3-psil-j721e.o \
> + k3-psil-j7200.o \
> + k3-psil-am64.o \
> + k3-psil-j721s2.o \
> + k3-psil-am62.o
Can you reverse the order? First declare the objects needed for k3-psil-lib.
It is more natural and easier to read.
With that change you can add my:
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
> obj-$(CONFIG_TI_DMA_CROSSBAR) += dma-crossbar.o
> 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 <linux/kernel.h>
> +#include <linux/module.h>
> #include <linux/device.h>
> #include <linux/init.h>
> #include <linux/mutex.h>
> @@ -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");
--
Péter
prev parent reply other threads:[~2022-09-28 13:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-27 23:08 [PATCH v2 0/3] dma/ti: enable udma and psil to be built as modules Kevin Hilman
2022-09-27 23:08 ` [PATCH v2 1/3] of/irq: export of_msi_get_domain Kevin Hilman
2022-09-27 23:08 ` [PATCH v2 2/3] dma/ti: convert k3-udma to module Kevin Hilman
2022-09-28 14:59 ` Corentin Labbe
2022-09-29 7:35 ` Vinod Koul
2022-09-29 23:31 ` Kevin Hilman
2022-09-27 23:08 ` [PATCH v2 3/3] dma/ti: convert PSIL to be buildable as module Kevin Hilman
2022-09-28 13:53 ` Péter Ujfalusi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9e628dc7-6453-7a96-87ca-9f1efa8bedc7@gmail.com \
--to=peter.ujfalusi@gmail.com \
--cc=dmaengine@vger.kernel.org \
--cc=khilman@baylibre.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=nfrayer@baylibre.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox