From patchwork Thu Sep 29 23:48:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 12994796 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B4961C433FE for ; Fri, 30 Sep 2022 00:12:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v9QHYEBCY8g9a1kgItf4g36/AEscmwPAa4y991ZhoJ4=; b=aqsr0BfORRZr0V 6iHR4dAYVChSyruvlhaGdYHJs2z/tkm/ZaFze4QQWG8G0rk72aDrdaZEGsgGSieiQZsglR2PzZ7u0 vZSWAotUrdShs+N6nqSW/HyY2syeLyuRw9wP7ubbgYI12rghv10iUUqDpvqZ+Ur3etXT1p8pBASYS yWcAq2lU+JABTjEZrmPtx7dH+AwUSDCmqzsrlWN3JsBGZLmOnCIvTUGUChK2gQ8DLnScyVD5n61GM t0iLLBfRc0m81I/B7Vn8mmFWhSp+PYA26jgbGJ8aU/9M10kEcWajRU7huMp8CIQH4oN4kNNT5CC+J RWB0LsSzl02OfXWGWnTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe3co-006GaU-Sq; Fri, 30 Sep 2022 00:11:31 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe3GV-00664S-38 for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2022 23:48:28 +0000 Received: by mail-pj1-x102f.google.com with SMTP id 70so2741687pjo.4 for ; Thu, 29 Sep 2022 16:48:24 -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=/0Wgb/pUWIq+NWeSNBH6i++oWwTqz1d9Kg9pALwjvjA=; b=FFA5AvFdiJoD8ZXGTOX9XObUPvpOTpcri23xQDTYSWUroIjKZvko7P8Fgb195CoThl ZmZIMUqXJU7WOREVUj0tG9xEvAxFnyJ4CPZRZrrYy5Ykud5bDwSpxMAKrA2LXtmAq9Oo 6ygMDK0KTq0tcn6WvlIsH3C2F90gID986kXVk3cZPS9lefu2Ug4XnwSt2PA5B1FntdkI yuTFUDSXZ11PXSmgAwNZVJBWD1SB8dmPutEf1IjLs/BmrLhos8ZQFWrRSTb+MwZduAtC fjNrimJVYhr6HMdVJoWAplnxkFyKWkkY8LLd4TIv4iur/27axEeNLJhG7N6MCc8vfv/q 5cAg== 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=/0Wgb/pUWIq+NWeSNBH6i++oWwTqz1d9Kg9pALwjvjA=; b=po0pMFKjmHfrHV1mk004bLz8qkEDYI6oAqmlvig7moZDGDgSDfjI5UgTI/VzZinKJJ EmslDEErmovyR4Hr7eECEsbYdzthAOtvC2oA09znZMt2vsrCLqxoaOaLEps42nqQCVyC ZxUwWhp6Ia7YOKD+9E1I7nQ61ZNpJrlk0s4oF6kKb2ZrRpu+F5rolefjDJ0xM7Utc0rg kYVE9BufyCqABJcsyDYaajqvwNsmXmiVT3RuSmthLCHM2T0jl2iFuvXCOtIf9K1TpglB 45xK9xKunGcv36ivT58kknKWpT8+XvvmLMxS4O5o41se6rVhDjNOWy3UFBcmaaR+O8Mq rWrw== X-Gm-Message-State: ACrzQf0OuLivIGDaj6n7t6BHY6WboLIY7Pg+xlrnjuTTjIf3ey9FxHN7 m3pfBJvYw7Jhf9cnzzJpXCQd8w== X-Google-Smtp-Source: AMsMyM63oMj5kO7k7gGLUNOH4mETJh8gyb0IpoCD4PoCB57/pCr6/9T+lo9fUigXsPu6NBe//v4STw== X-Received: by 2002:a17:90b:3909:b0:203:a4c6:32b8 with SMTP id ob9-20020a17090b390900b00203a4c632b8mr19051414pjb.5.1664495304010; Thu, 29 Sep 2022 16:48:24 -0700 (PDT) Received: from localhost ([75.172.140.17]) by smtp.gmail.com with ESMTPSA id d17-20020a170902f15100b0017b224969d6sm468132plb.76.2022.09.29.16.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 16:48:23 -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 v3 1/3] of/irq: export of_msi_get_domain Date: Thu, 29 Sep 2022 16:48:18 -0700 Message-Id: <20220929234820.940048-2-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220929234820.940048-1-khilman@baylibre.com> References: <20220929234820.940048-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220929_164827_171374_A09D4845 X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Export of_mis_get_domain to enable it for users from outside. Signed-off-by: Matthias Brugger Acked-by: Rob Herring Signed-off-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20200122104723.16955-1-peter.ujfalusi@ti.com Signed-off-by: Kevin Hilman --- drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index d22f605fa7ee..c9308baa32c5 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -727,6 +727,7 @@ struct irq_domain *of_msi_get_domain(struct device *dev, return NULL; } +EXPORT_SYMBOL_GPL(of_msi_get_domain); /** * of_msi_configure - Set the msi_domain field of a device From patchwork Thu Sep 29 23:48:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 12994797 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 13ECFC433FE for ; Fri, 30 Sep 2022 00:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=V2dtVGywTt8F3dRj8m/4/qIxl6BP7NPmB1cPtm+nRpg=; b=djXb1BxhUPD8Rk 3itw70aq6Krc7eeQImn/xBP9OIpWgsoHgkIzKDtiqJATHP5p2d/0Q/dE6c3+aJPTkKaxk0gIctUNX wCUzaBoHgybtMc3sgh7QqcOR1U1J2Ojt5xJfUzm4jYaFL4EdsqeApWX/AxQQS0Ql1Lridiepy+yTY BKcsTj2eJkEtkbV9WiJmgbIUIjl+DucpFTfMPoZyrJ5QXmM8zl40vKBfRhNeQqIkOcRkAdPMTvBA4 BUMeGdbIUB/6kZAkCYU6V13W9OsEC0YoBtZzQ2215Z2wdGhh2CtZD6u6qbY+AxyleAaMosQ7K5cam ODxei7jJZ7Ikdp/rH56A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe3dV-006GtN-1z; Fri, 30 Sep 2022 00:12:13 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe3GV-00665P-NR for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2022 23:48:29 +0000 Received: by mail-pj1-x1033.google.com with SMTP id g1-20020a17090a708100b00203c1c66ae3so2761138pjk.2 for ; Thu, 29 Sep 2022 16:48:26 -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=47vGPfHQ5SpOiUOWbCFeWpSRlTRaxQq1Ffs8KOXZab8=; b=Tcw6vcE1W9xd1zM11+UsgwQbqzbllS19xXqy5HRhsIP51Jw6vFXxPm2Z+L5U+CUy7L R4tj5NbrZiKLiycxqvvk04LT1z84WX+JTEc6VfkECGAhrafsz6Fy9ImRsIr5f+wImeMb HBnV9ZG1mLZYKGfa7U6RxgqI/yHa7eJrmVRigTc636CE+hmhGMUJHKUzO9E5PjiY403J huY5QWheHjV/z0oRVbZFVtqJu+178ql0Atxbj3d2axcd397Fx4mtAqGeDWvHDNh1DQ4+ tu7oOHzZ69mqHvR17NCPYg5+dQn80HqlH46vC/cgdzQO/izk237bnD4v4l237C1TyWGp 606w== 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=47vGPfHQ5SpOiUOWbCFeWpSRlTRaxQq1Ffs8KOXZab8=; b=t9j1TFwIwUbg8pnGYP/LCJNJUk44aT4SwTYAyElUiKrjgm78yCaMJvypLaSG+3VU7J A/sng+QSnj7RnE7llHjZhR8kbeBkrP1M1wPwNXfimZEW4qGciCRUoDpLnrRNaxm+EBiO iRiKwLjduEG02aJl9ZqE0dIuuqgOflYGCpkDk+D+WuOWv/2Ba2oeil3ODLRXdgX6XbPB bEASgiP0aRXVBYF/Lap/k/wQ2Dtfn2N5oCYcKq41oLlWMXl9QbSzn5vQxSGYKXG67/hM 4rrUuxldAVP5hvZRDswjDCjcfGisMjtDLn+dfvmD3dZgbvzMEcEvVEZl/hCKyL5Wnk4/ jAFA== X-Gm-Message-State: ACrzQf0amX46SsJReIZrwSlO+nLO+J1xTYJiJKkC55oHm6G8QaiPilyE TEITI30txWo+8YwrE6NHG9lH/Q== X-Google-Smtp-Source: AMsMyM7Ow0uJaIea8+NKspCt4hxki3jkwPJmYa3/6FznNa3iKWL1vFC/8gPgZU2fksAK/oBo4uGg3w== X-Received: by 2002:a17:903:1c2:b0:178:3c7e:34f5 with SMTP id e2-20020a17090301c200b001783c7e34f5mr6032146plh.105.1664495305487; Thu, 29 Sep 2022 16:48:25 -0700 (PDT) Received: from localhost ([75.172.140.17]) by smtp.gmail.com with ESMTPSA id i3-20020a626d03000000b0052dfe83e19csm275681pfc.16.2022.09.29.16.48.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 16:48:24 -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 v3 2/3] dmaengine: ti: convert k3-udma to module Date: Thu, 29 Sep 2022 16:48:19 -0700 Message-Id: <20220929234820.940048-3-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220929234820.940048-1-khilman@baylibre.com> References: <20220929234820.940048-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220929_164827_807768_50428E87 X-CRM114-Status: GOOD ( 19.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently k3-udma driver is built as separate platform drivers with a shared probe and identical code path, just differnet platform data. To enable to build as module, convert the separate platform driver into a single module_platform_driver with the data selection done via compatible string and of_match. The separate of_match tables are also combined into a single table to avoid the multiple calls to of_match_node() Since all modern TI platforms using this are DT enabled, the removal of separate platform_drivers should have no functional change. Acked-by: Peter Ujfalusi Signed-off-by: Kevin Hilman --- drivers/dma/ti/Kconfig | 4 ++-- drivers/dma/ti/k3-udma-glue.c | 5 ++++- drivers/dma/ti/k3-udma.c | 40 +++++------------------------------ 3 files changed, 11 insertions(+), 38 deletions(-) diff --git a/drivers/dma/ti/Kconfig b/drivers/dma/ti/Kconfig index 79618fac119a..f196be3b222f 100644 --- a/drivers/dma/ti/Kconfig +++ b/drivers/dma/ti/Kconfig @@ -35,7 +35,7 @@ config DMA_OMAP DMA engine is found on OMAP and DRA7xx parts. config TI_K3_UDMA - bool "Texas Instruments UDMA support" + tristate "Texas Instruments UDMA support" depends on ARCH_K3 depends on TI_SCI_PROTOCOL depends on TI_SCI_INTA_IRQCHIP @@ -48,7 +48,7 @@ config TI_K3_UDMA DMA engine is used in AM65x and j721e. config TI_K3_UDMA_GLUE_LAYER - bool "Texas Instruments UDMA Glue layer for non DMAengine users" + tristate "Texas Instruments UDMA Glue layer for non DMAengine users" depends on ARCH_K3 depends on TI_K3_UDMA help diff --git a/drivers/dma/ti/k3-udma-glue.c b/drivers/dma/ti/k3-udma-glue.c index 4fdd9f06b723..c29de4695ae7 100644 --- a/drivers/dma/ti/k3-udma-glue.c +++ b/drivers/dma/ti/k3-udma-glue.c @@ -6,6 +6,7 @@ * */ +#include #include #include #include @@ -1433,4 +1434,6 @@ static int __init k3_udma_glue_class_init(void) { return class_register(&k3_udma_glue_devclass); } -arch_initcall(k3_udma_glue_class_init); + +module_init(k3_udma_glue_class_init); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index 2f0d2c68c93c..7239ff31c8c5 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -5,6 +5,7 @@ */ #include +#include #include #include #include @@ -4318,18 +4319,10 @@ static const struct of_device_id udma_of_match[] = { .compatible = "ti,j721e-navss-mcu-udmap", .data = &j721e_mcu_data, }, - { /* Sentinel */ }, -}; - -static const struct of_device_id bcdma_of_match[] = { { .compatible = "ti,am64-dmss-bcdma", .data = &am64_bcdma_data, }, - { /* Sentinel */ }, -}; - -static const struct of_device_id pktdma_of_match[] = { { .compatible = "ti,am64-dmss-pktdma", .data = &am64_pktdma_data, @@ -5254,14 +5247,9 @@ static int udma_probe(struct platform_device *pdev) return -ENOMEM; match = of_match_node(udma_of_match, dev->of_node); - if (!match) - match = of_match_node(bcdma_of_match, dev->of_node); if (!match) { - match = of_match_node(pktdma_of_match, dev->of_node); - if (!match) { - dev_err(dev, "No compatible match found\n"); - return -ENODEV; - } + dev_err(dev, "No compatible match found\n"); + return -ENODEV; } ud->match_data = match->data; @@ -5494,27 +5482,9 @@ static struct platform_driver udma_driver = { }, .probe = udma_probe, }; -builtin_platform_driver(udma_driver); -static struct platform_driver bcdma_driver = { - .driver = { - .name = "ti-bcdma", - .of_match_table = bcdma_of_match, - .suppress_bind_attrs = true, - }, - .probe = udma_probe, -}; -builtin_platform_driver(bcdma_driver); - -static struct platform_driver pktdma_driver = { - .driver = { - .name = "ti-pktdma", - .of_match_table = pktdma_of_match, - .suppress_bind_attrs = true, - }, - .probe = udma_probe, -}; -builtin_platform_driver(pktdma_driver); +module_platform_driver(udma_driver); +MODULE_LICENSE("GPL v2"); /* Private interfaces to UDMA */ #include "k3-udma-private.c" From patchwork Thu Sep 29 23:48:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 12994798 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6B7DC433F5 for ; Fri, 30 Sep 2022 00:14:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T2TdwpXZTAj1MVoSLCp0azVtZ56HkpDWUlkvGDGhLqg=; b=gctAqpv0cQ8nhK E7dDKCWC1GTM2rgRyiAPY7yqvjFkMJdox8Ip3+xFXQgVWMMNHItMmaoVV4tEjLk6aUYkzdYaxEmUw oWt8WuSHpEf5Cvvdg4vm0pEGdV0KqDExnMZqTtg9MatPbqpb2qCiFG+JH0LywNN673r7k8DA99cvx mwEgZthVvRjvr6UB6XFHQIBB0X2tLKpimdPe3Pyl6wwe6kkxaEaqnSoS+qo8UD+F2iRIn7Ayy5ych gt44mZMKRrskB3e5Kh+9CvmZlI68vrMawdTl6NntKJOrOsPFzOL+NmdwnelRYP2hZTREk/bmsiLSh aXtarv+83F47Uh0bqzfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe3eA-006HET-2L; Fri, 30 Sep 2022 00:12:55 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oe3GX-00666O-FO for linux-arm-kernel@lists.infradead.org; Thu, 29 Sep 2022 23:48:31 +0000 Received: by mail-pg1-x52e.google.com with SMTP id s26so2761250pgv.7 for ; Thu, 29 Sep 2022 16:48:27 -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=dTDmxuFs3z7wPKBAGhH0lbmw9ej4hIfQh/7fOzv8B9k=; b=OknPLF3QhruqHGOFUgdMYe9vU9jMRxOvbCrmgnSUfE3QRVGsP+SByYmW+j5DGfAgbI 3GZNyJx+uMMG48/QlFGttyOQy40rvLStFHGVfWwKx+t8aU/x0vbC2EJ7jWhzYneesVF6 Dx1XPXoscxUwRBl8K2JRtCXt963On/O3WJvkzOCtPjasR5oLPo710+m7bvuCxktxXp7/ kGaLctd08wbrf4jtURlVOkcTGul2Bb+N9I9sWz2ISyBD8IQ9XKfKJ8HKnO+pEauGJTPg Ja/wZxrd3xO9k/RxvqpKgnU8n8gc8DCcFikh8dRrRY11j3BT/qpfVr9dg1b84bW7ZBQV fCqA== 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=dTDmxuFs3z7wPKBAGhH0lbmw9ej4hIfQh/7fOzv8B9k=; b=3LlebYWKegfHF7UKDr7YR2J1tojwBolqOziHBWAui8+XkudSME9D3lY5ehqZ8yXsn2 DareclZonCQdJ2BoH0L7Upu0P5IW9pSrhqVkzUUnK5AsXTPpAAOfpJ4YGAxPoa69jvBB MI2j41sNcNzpqXBe4hXl4YhvHm71y8vx87huvo68YRDpM3CRhjjtKDpOCxlr3fIYT1TR 0gTiGk/1hG07M4oynQqxxGSloolnGV0DCzcDjv0WJKcODQNEIjfrLORnHEtTNixHaI6i ZmnPkGKOgtGD0nKQ/5AloQuHyAhqtc+cjG0QbruPaN6Cyf/P+vWUPY62gwo8P0LGZuug LPRQ== X-Gm-Message-State: ACrzQf14wsbrz+EXqQudma0CRgF06iMXa0j834nDs86KAJwPTJqm8Iq5 dND6PzcjciD5zUGuKC0fIoKldw== X-Google-Smtp-Source: AMsMyM7FwShIBExasb/b3zh/05Qz4LcRzwNLRfz7dvkYRrbOQGa3E6KtJuuhDK9TPVTm5VBDPBgmIA== X-Received: by 2002:a62:6085:0:b0:53e:7874:5067 with SMTP id u127-20020a626085000000b0053e78745067mr6062525pfb.4.1664495307142; Thu, 29 Sep 2022 16:48:27 -0700 (PDT) Received: from localhost ([75.172.140.17]) by smtp.gmail.com with ESMTPSA id b2-20020a621b02000000b00536aa488062sm244055pfb.163.2022.09.29.16.48.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Sep 2022 16:48:26 -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 v3 3/3] dmaengine: ti: convert PSIL to be buildable as module Date: Thu, 29 Sep 2022 16:48:20 -0700 Message-Id: <20220929234820.940048-4-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220929234820.940048-1-khilman@baylibre.com> References: <20220929234820.940048-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220929_164829_550927_B7F0AEAC X-CRM114-Status: GOOD ( 12.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Combine all the SoC specific files into a single lib that can be built-in or built as a module. Acked-by: Peter Ujfalusi Signed-off-by: Kevin Hilman --- 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..b53d05b11ca5 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 +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 +obj-$(CONFIG_TI_K3_PSIL) += k3-psil-lib.o 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 +#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");