From patchwork Mon Dec 23 11:04:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 182389 Delivered-To: patch@linaro.org Received: by 2002:a92:a146:0:0:0:0:0 with SMTP id v67csp277308ili; Mon, 23 Dec 2019 03:06:08 -0800 (PST) X-Google-Smtp-Source: APXvYqy5p9WuXA/oQrH73n9IjuvdER/9xSCVIu28asUE8F2IGUOQNCB6VMuow/hQNhhpaP/uOKkW X-Received: by 2002:a9d:6183:: with SMTP id g3mr32129158otk.304.1577099168894; Mon, 23 Dec 2019 03:06:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577099168; cv=none; d=google.com; s=arc-20160816; b=zdxJC9MqefdcPxq2rERtsDdMGLfV8I4Sp19zYKGREjaRtZ4/eYquzw23rg5bIhxXDI w7s+FVfzNvcn0KfGdtZgQveonAAEf/A5zSSAbOqNn3gEx0J0d+ML8DxkD6/3yw4Kr+X0 dl68uiB+hEAB+PKzjVBZx3UOF4FbjgwqMRr5udgb2mOUXHxRiTao5eEXwrqnLiouAJvB GrlxqWBcoTCX5MyWAaSeCVhjBylTfb1L2U/nDO+nwcQ2crcQ3jfkpPSgrJgCu22RvmzO tNY+yin7QoJPyky3hksEF2EB0eNejS1UbsMnlLeKQ7K4GMpi3nT2qGkJoZNIhdGqxI9Z L5TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rp/62BQYhqoboYRxDYwm8GGofs63IPLsPbjQvI9zhO4=; b=ep69SwFnbTTg8bDTCsTfNrwxWekoUQ4ehkOf0CRxgvl1iOmdNibgzHvMV5K/9FQxbQ 1sT9siCSZmqS/0nq8a2iiivxoKvEVki7mb5Gp1eyWMuWyrzLJQ+OUUG52zUAFYWbL/w8 wJI3rPGoBmolJmON3oOfpFOSmQ5o15GQrOdPB37e1WbiH93euEDR+2VrfqrXyYYuEpUJ puxfHWk99Pd1aGXZ5oWd7qaBR0uDQ8sOrY15pYn4bXiCh+XwwAzvnbDMJny+2C/BHBV0 t76wm3zNMRTyY4fPT4n3X4I3lYagpK6pzWLQO0aguvduqrSRq4OXI4aaNN4R0irDJF+R Wq6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SEmFS4yU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si10348487oti.74.2019.12.23.03.06.08; Mon, 23 Dec 2019 03:06:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SEmFS4yU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727378AbfLWLGH (ORCPT + 27 others); Mon, 23 Dec 2019 06:06:07 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:39124 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbfLWLGF (ORCPT ); Mon, 23 Dec 2019 06:06:05 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBNB5pFZ032320; Mon, 23 Dec 2019 05:05:51 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1577099151; bh=rp/62BQYhqoboYRxDYwm8GGofs63IPLsPbjQvI9zhO4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SEmFS4yU+Ye4liFn8IDs48Dmku+Fd2i06zwMpWmUJ0x2tL6nti6tHJbiozeT+sWuM Cy+VKPC6qySjnpnR39Zn0ko0TnyUpiw7BxYo8aVca+kXXan0aSq/p+UfCpV1EMiGSE vulJHo8jxf4D4IKfkKRtZIZPpCnSzmpQkQOETmm0= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBNB5p1M026258 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Dec 2019 05:05:51 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 23 Dec 2019 05:05:51 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Mon, 23 Dec 2019 05:05:51 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBNB4eMO025693; Mon, 23 Dec 2019 05:05:47 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , , , , , Subject: [PATCH v8 17/18] dmaengine: ti: k3-udma-glue: Allow the driver to be built as module Date: Mon, 23 Dec 2019 13:04:57 +0200 Message-ID: <20191223110458.30766-18-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191223110458.30766-1-peter.ujfalusi@ti.com> References: <20191223110458.30766-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ring accelerator driver can be built as module since all depending functions are exported. Signed-off-by: Peter Ujfalusi Tested-by: Keerthy Reviewed-by: Grygorii Strashko --- drivers/dma/ti/Kconfig | 2 +- drivers/dma/ti/k3-udma-glue.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/dma/ti/Kconfig b/drivers/dma/ti/Kconfig index beb000be7d1b..987339e6f517 100644 --- a/drivers/dma/ti/Kconfig +++ b/drivers/dma/ti/Kconfig @@ -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 || COMPILE_TEST 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 c1511298ece2..fe3f96f6e0a1 100644 --- a/drivers/dma/ti/k3-udma-glue.c +++ b/drivers/dma/ti/k3-udma-glue.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include @@ -1196,3 +1196,5 @@ int k3_udma_glue_rx_get_irq(struct k3_udma_glue_rx_channel *rx_chn, return flow->virq; } EXPORT_SYMBOL_GPL(k3_udma_glue_rx_get_irq); + +MODULE_LICENSE("GPL v2");