Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4582717imu; Tue, 18 Dec 2018 18:27:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/VSaPCz5I2AQU8lqRdKhF8/EVUtDah2ahYnOLjGloUA9seeeUi4jEynQlgRXTWv4fORD2Vu X-Received: by 2002:a17:902:f091:: with SMTP id go17mr19108245plb.235.1545186432465; Tue, 18 Dec 2018 18:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545186432; cv=none; d=google.com; s=arc-20160816; b=US+nHx5W+JzVpbTVyCWRZbbCwoUyVcu2+90pxpJYZ0g2qtl2/zRUAzZyOcZkniG44v 8otA75p4STzFjp8Us9gYhu27CCBY+r7wujKFCA0VnMoFBSHONz+UVyn73dJ8jd0U5jVa CWJ2Ff8NMSphGmweQM2hLZou6CAuWRVOtk82MdOoGptOr/e9GiXkuQBncxgwlZDREj0K iOhGvvVJ9K4QMhB9iAglXGiL098KrBkFjWSMo0N1N7oZ57JPiYkIZYdxdWtI0FVEQZ8U Ut82KALrvuZ3nmD2A483JT5/flFtqXd5sD0czM8WGPrHe3z996688/diicj5HjF9acI/ voqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=AN41a6g7f0f4PIsAJw4wxOArqK7E8YMwertdZjLB/A8=; b=mcwime5d2O+G/pr9I3XN63Gvcadh7cftuEsWAhW7TspeIukIK3geMDFlOEoqbpN+5o 66qeG6a3I2UIWnaLilynyQGcLyEiRThPYaf622pk/aM57uJnB5XAvy2wI+7zAWutYoiZ ImrLSqgldpUHXr+7bRBDoWn50UaO/3ud8MVMU59Jp4/XFMe85G7GSe3wFLmhvzFTyDPk KmqVmCt9D3stGgin738wZBVVZib9b7ftj4ncWfsOnZlEpw2YecEhgJ2e74eAZdLQNJGq ePwxIum2kQbMP5DbmUgSpBipBsW34iZxDzpz3fttkiBcn3ynyKlggopH9tO66YPdIood vjgw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 102si14809966plc.277.2018.12.18.18.26.53; Tue, 18 Dec 2018 18:27:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727465AbeLSCUp (ORCPT + 99 others); Tue, 18 Dec 2018 21:20:45 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:39355 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726652AbeLSCUo (ORCPT ); Tue, 18 Dec 2018 21:20:44 -0500 X-UUID: edc3295faab94832815f19a566e6d431-20181219 X-UUID: edc3295faab94832815f19a566e6d431-20181219 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1684768122; Wed, 19 Dec 2018 10:20:34 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 19 Dec 2018 10:20:26 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 19 Dec 2018 10:20:25 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland , Ryder Lee CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Long Cheng Subject: [PATCH v6 0/2] add uart DMA function Date: Wed, 19 Dec 2018 10:20:20 +0800 Message-ID: <1545186022-3712-1-git-send-email-long.cheng@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 629885F3AC3BB250347978EFA794A318DD3A54F82BE17AD6550BE85A2A53139E2000:8 X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In Mediatek SOCs, the uart can support DMA function. Base on DMA engine formwork, we add the DMA code to support uart. And put the code under drivers/dma. This series contains document bindings, Kconfig to control the function enable or not, device tree including interrupt and dma device node, the code of UART DM Changes compared to v5: -move 'requst irqs' to alloc channel -remove tasklet. Changes compared to v4: -modify Kconfig depends on. Changes compared to v3: -fix CONFIG_PM, will cause build fail Changes compared to v2: -remove unimportant parameters -instead of cookie, use APIs of virtual channel. -use of_dma_xlate_by_chan_id. Changes compared to v1: -mian revised file, 8250_mtk_dma.c --parameters renamed for standard --remove atomic operation Long Cheng (2): dmaengine: 8250_mtk_dma: add MediaTek uart DMA support arm: dts: mt2712: add uart APDMA to device tree arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 +++ drivers/dma/mediatek/8250_mtk_dma.c | 694 +++++++++++++++++++++++++++++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + 4 files changed, 756 insertions(+) create mode 100644 drivers/dma/mediatek/8250_mtk_dma.c -- 1.7.9.5