From patchwork Tue Sep 27 23:08:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 12991467 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 D5607C07E9D for ; Tue, 27 Sep 2022 23:09:18 +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=sFsrgQ6I1GMYMe cSUxANMjlPtjbje9aGSEh1dL+LDlaahQ7M0hmZgA8nEQUXYYb5vOcjB3ajcXt/4Z9hD+OrXtzszOh dlNhZvlPaYbby/oEYjt1CdH8uJZJSOGbRe+hCQRGgXvOj5Tqna7yxojQ3VUGX+SAymSw09fKgofiE zqzT4S7h0GwHBB+M556I9os8w5RZPB0F5WH/z4oJtoM7oCRuOb8piX7yRGrKeUeh7vodB83bl3dhR 1G4l3qPtF7Ayv49bplq6eRC5TNv4SE3DIfpjUCZHDvWk6Mvr7LJ9xwlb4xuRA0kFJlVOQG3t5IKtl wpQZgJ6WgQYHAfVCp2+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odJga-00D7On-6A; Tue, 27 Sep 2022 23:08:20 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odJgP-00D7M8-8l for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2022 23:08:11 +0000 Received: by mail-pl1-x634.google.com with SMTP id n7so1636366plp.1 for ; Tue, 27 Sep 2022 16:08:08 -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=DvNf2QAz0UeP6EdWSsJ0nLp7UC/cTYt1i+tB6cGYeQOQmAvWQhnvHRTda6G8CT3LUk mbCmI0RCl74H4fto4GkN5wPH1Sp5wM5BwZqOHEsBMF3nUjAQjhr+sKgNXAT/gUxIaxLy TS0GtqYNLZTbvG9W08ShNreSUrTW7Odg64X5lbKYiuW1IDtP4YIZueUASu63Lb63H3EF MsuWjw3bxeaJawYs9zIDUEq96bVL5uIMj0e0tlSpES+mCxUsy11ljhhgPlzQ8e7SL1Xr s/pXXQamNyJhPCmk8yrZjIPI4SSTUJISb5QBsMYOpH+3kPZX+kjIi+j++pVEb0+yxO1f 2bVQ== 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=A+cyZo5xSFqvnRbnjwRH+vPHIh+l1k0fmMv0kjnFhTG2appfeUky7y41xZXdxqLcZr rzQNcUXZfa2UuJ9GJ95jcd/mPsXWTdASBBhYPABQJL7MMfgrqKohvKCpfPn/t6QCRwTt 6/5EjHlQrzyRRQxSD2Fiel1vU8CUHFvcWdSg0d5/nEgTJFnue5SN7xXXvHO2P8twsIwD rNWNAt6h3D7vw4RNLTTrdGlUWT7N5qsQ2//ZBzeTONbW6W6h3//QKfZg/Z04sGfzsbcY oyXqR0PVYcoWkp4gNImGDdIHJUunrW7q8ceiTrqZjWd/UrInVfalkdxrZsnOiqeUteaw VVjA== X-Gm-Message-State: ACrzQf3tTv3W9lLnkyQHQmjXPzbgsZhFhvkjpbewY08DaxcCkvKjTGgu zFbNtBv62AGyDiWgmoBi5X2/n3K5dVGCQJud X-Google-Smtp-Source: AMsMyM5wYuSJqm+bKdlRIYCXAy/FatWIyUqT1yDRQc5JfrKgKJaC3qlgpz/ZghVX344Tk4e8jXrotA== X-Received: by 2002:a17:902:c1cb:b0:179:edcc:2bf9 with SMTP id c11-20020a170902c1cb00b00179edcc2bf9mr4736379plc.110.1664320087794; Tue, 27 Sep 2022 16:08:07 -0700 (PDT) Received: from localhost ([76.146.1.42]) by smtp.gmail.com with ESMTPSA id n3-20020a170903110300b00177e590df96sm2134637plh.118.2022.09.27.16.08.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 16:08:07 -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 v2 1/3] of/irq: export of_msi_get_domain Date: Tue, 27 Sep 2022 16:08:02 -0700 Message-Id: <20220927230804.4085579-2-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220927230804.4085579-1-khilman@baylibre.com> References: <20220927230804.4085579-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220927_160809_324147_0219D691 X-CRM114-Status: GOOD ( 11.21 ) 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 Tue Sep 27 23:08:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 12991469 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 7FF5CC07E9D for ; Tue, 27 Sep 2022 23:09:39 +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=st/bVWmOkTiZ9U4lFMSoXjCblM9kTROOIxT4ioUGRaE=; b=M9A2zbRK/Bz2Rw D5OsqywaUgFakcd3TwND4jpC+M5GIpna7wfvEaJkdkGW1okER6Th2se5FNqzEMSEpPK+KsXBsSoje 3k9l3YRNjJREhl7+td4hR6jM8ctcc17ydL7MYuSef7KjmhGx7YI30GWMEG2rqVXaChsqnYr9Qe/ub Fw7yFxBiyreyb7Xb/QVqv2hf/8LoqW3q8C1+ADOzDqLVsCGkcsXsuZoFdbTZ8yo/rME+gr7DR2yFR 5j12xuWQC4Lim5HN7H4w1h7fjdMyxmnDY6k9C3PjTetTS9YQnKMHBtx9IgjBFIwESGYQpCb+MdLTE qxFEh5suv2R9QJPqNj1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odJgi-00D7PJ-Dr; Tue, 27 Sep 2022 23:08:28 +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 1odJgR-00D7N1-5i for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2022 23:08:12 +0000 Received: by mail-pg1-x52e.google.com with SMTP id 129so9269130pgc.5 for ; Tue, 27 Sep 2022 16:08:10 -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=3D+ViyFwrXZ0nshMyB6HV1II5SU4JDOahb0+F+RI0tE=; b=b5fb58H+z3ZJAsyvwzFqDmxJqpA96BLlhQe6uVl+mwqulv0KClo2l8aIq0msqF3k/M 2CenHdRU5BEBXXdo153aGnR7tEQaj/gBb75QvRC/gzwYD3FlPVixLJiavAGRQDMY5TQV ZFcbN7igcwVkc7HLFnGedISchZiux20mJO+2YVFAHHkbJmGNnt99pEKP/Kk7+0PvdO19 bklUCkZc/C5T4c4/qnLb4AmM77ybfRH+xX+XiQL/M0bsWms3WJJO2WI64D7qGYF/pBol nuoMcUjm8altWuSoJWS3ZA0a1s6pH7CjnC+PdyknZAKcdLFX9XBmjEGmLnYujZzjdGdV jDtw== 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=3D+ViyFwrXZ0nshMyB6HV1II5SU4JDOahb0+F+RI0tE=; b=GQo6vKdB9YHIQpPQ8yo0ljzjLjOmcQiLYCAfy9GjHHEPrAajsrZLIFGWPgvfp8D7jJ 5T0mfUKmYkyCQiZyB/7p3lXPEjMiy1QVsjn3EafUG98/IiWCrbJTRbdpnNCtbW1cfeI/ QyAJPC3HojeZ4fJ3q8Ip5jXXlMRYhoI4makUdsyr7QtCCqL/3e/WUeeQB9DvibN9Sir6 fRfbFLAfgMnqkjfOMwEYsUqVgyoJ1ilIVtNMN34LlgxPDwr49tN9AVSVdTR0LyySDawk 3vZjyfU0OXTdUAM3tb6OHDDSNVpHQ31hBWCt+wK2qooZqw+6MjDc/salECy+TWsJ6E2p yTgw== X-Gm-Message-State: ACrzQf2C7X5qsYod131HPRK4wMsj7u9lP0izGp/uaViP+uyc/Harvxrk kRxIxKSCMxRgyt+kiAiND/uvFg== X-Google-Smtp-Source: AMsMyM525NWDdFeelA0uGSrAFLlw61Kz5Ki/PBk5/uD0cQTBGE80JfTpmVu5HT7tyhpjGHg3rpd5LA== X-Received: by 2002:a63:dd01:0:b0:439:34d8:82d5 with SMTP id t1-20020a63dd01000000b0043934d882d5mr26244218pgg.530.1664320089622; Tue, 27 Sep 2022 16:08:09 -0700 (PDT) Received: from localhost ([76.146.1.42]) by smtp.gmail.com with ESMTPSA id t17-20020aa79471000000b0053ebe7ffddcsm2338488pfq.116.2022.09.27.16.08.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 16:08:08 -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 v2 2/3] dma/ti: convert k3-udma to module Date: Tue, 27 Sep 2022 16:08:03 -0700 Message-Id: <20220927230804.4085579-3-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220927230804.4085579-1-khilman@baylibre.com> References: <20220927230804.4085579-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220927_160811_233754_AD4ABB76 X-CRM114-Status: GOOD ( 20.37 ) 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 shoul should nave no functional change. Signed-off-by: Kevin Hilman Acked-by: Peter Ujfalusi --- 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 Tue Sep 27 23:08:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 12991470 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 0CFEEC6FA82 for ; Tue, 27 Sep 2022 23:09:42 +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=NCidEmXoIYrXKWnoLIHpxsGfp/rvyDligeudaAbtuRQ=; b=TwZDMMXMfCvEOF LCg0kcM7Bhp+k6INPJKDrGArFppIAaTPrbXI4o/9z/lPrOhw4FXRhJWVScdQDBBMikMiQsgYiAZ2q 2e913Jssx7VdVTnil8RJDE1hreRjhIhsMIVdysbLMuAxyMo5Kta+NYrnrfQWTQuW9aANhykHPWlwZ V63a6XOK2s0mfyg4Xg6NOp74qmV5R1e7UXQe4dnGp8tgKq2LcQM+2PBmTZha7J6s7JrdtJXSuyblj PCJFwp5bv46KaSSrkvzhAmBKc208qM6574rROv5d9a7UwnHikAHr8ANenXRm+hEnwPRZ8/RY45Rnc 4IZ9lQA0bLxanCbIsSpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odJgq-00D7QH-L7; Tue, 27 Sep 2022 23:08:36 +0000 Received: from mail-pj1-x1031.google.com ([2607:f8b0:4864:20::1031]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odJgS-00D7Nx-2m for linux-arm-kernel@lists.infradead.org; Tue, 27 Sep 2022 23:08:13 +0000 Received: by mail-pj1-x1031.google.com with SMTP id r8-20020a17090a560800b00205eaaba073so148623pjf.1 for ; Tue, 27 Sep 2022 16:08:11 -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=yeSMLt0QcWRozcoJu3RXA4AvoS1ZsHlIkOCTmTowx7I=; b=XLcAMNhytbBtG/x4qe4JVVXoU/oRahrzMNPA9XzB+cuOn8igGK7LvuqiDYN/KeMHep mEBzCU6kLdYlrA3J/EU3V9wS2irZUAE8JMJEsNz+88j4p7Ys0wisPZy0WomNwOWjOxYF hU9Rcpc+uPty0rtryu/ueazfzufLAL97Iops1jTr9An0Oy0cltL9JI0xUNdu0a5Y8nm9 Fm5wb0hS8ZL9jaZD5CarJEhwytuP56ZeBIsQfTBITPWFLRxLN+tzpkAAhVx4veStuSGT SNhhIzPYoQcfyTADq7Bv6CfpdV9chQVSYo+myWL1CkJZoCjtF7pjeIFZsPwY6KRwSFR/ tkgw== 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=yeSMLt0QcWRozcoJu3RXA4AvoS1ZsHlIkOCTmTowx7I=; b=OjqJsGtJVNvuyS9+Ogrfg8Q8hSn3qzkj/TIx6PXZjyA8YasmM+qijExUlgHZMbgib0 hQgwkGdT0FiJSsTuMBePpXys2goSeH20FRoIow5wIQp8Zz/YA1Ca8foF4wEsorE045fA /fqrE6GfF4xxrLylwTHKh0jKxB3ZecGeCyjL0qsXnRnO0E5oDL6uCEk6LOG6uIE+RTzv Z4hpqv1RK5Jq397d6r1keXov1pHFc19RmBfB6uLOy/C30fkA7IB3bWrHH4X7s0EW/M4M b/wG9RNZhNv1ZkuRIM+hHaZ2IsUEyQgrgL9HNxpiI2oMANj9DiURncZuF/OdVQ3FcF2B ayMQ== X-Gm-Message-State: ACrzQf1nu6T5VxGkSDLdo/HhhYdI0SttsyjEkvB8UJRlSviiiwnbPN9Q 8KvxgzZLu9+1VFWE7IK6h0lImQ== X-Google-Smtp-Source: AMsMyM5nOkGYTE6OZybegez1sBEh42c3rGjThtjItYnhiNhXeGlAfwkwT3KjR3niFYWOwRx+6naXRA== X-Received: by 2002:a17:90b:1d8a:b0:203:6db:ed6f with SMTP id pf10-20020a17090b1d8a00b0020306dbed6fmr7148972pjb.228.1664320091272; Tue, 27 Sep 2022 16:08:11 -0700 (PDT) Received: from localhost ([76.146.1.42]) by smtp.gmail.com with ESMTPSA id i14-20020a636d0e000000b0043954df3162sm2097103pgc.10.2022.09.27.16.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 16:08:10 -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 v2 3/3] dma/ti: convert PSIL to be buildable as module Date: Tue, 27 Sep 2022 16:08:04 -0700 Message-Id: <20220927230804.4085579-4-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220927230804.4085579-1-khilman@baylibre.com> References: <20220927230804.4085579-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220927_160812_149839_84B85F1E X-CRM114-Status: GOOD ( 12.69 ) 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. Signed-off-by: Kevin Hilman Acked-by: Peter Ujfalusi --- 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 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");