Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1434204ybm; Thu, 23 May 2019 00:37:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRaPOGlce4D3T9QCil19na7/UukYVCJwYMoCj7kq8Mk0Q+XLVyeChx8lA5p9wouK5KA1mZ X-Received: by 2002:a63:d615:: with SMTP id q21mr93823795pgg.401.1558597020205; Thu, 23 May 2019 00:37:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558597020; cv=none; d=google.com; s=arc-20160816; b=ANuXK5qgrPDe807NBBccWqHrMbex5Gt5z4upNOD8rQkvH73B2RTFe358wVurFSIwg+ aV47ioa7V/y2ZyIvNESYX0ahHhYkeoMYYYSh6w0yLwG0cdIc5UuHl5uST82CaBjKX2hs QEJ7DHY5Ayu6mtPu8rt9zNJPbrUn1zM9jAWj2VdUb9CRv6lgBSay5lJnZggjtvHXXu6u oovIuWzl+GeXCvK9van6H/OXCERw3GTKimq0KnCLkL5NaaM3KNDUyZI5/TSiTjc7m5OU 8BJlTkj/1f8gfRZIWb3UR4E+XfTMVx/bQEfsD1c5Z2OHP8b8ZQSVY/EPrFSjniVXYTDo kyHw== 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=ieyLzrbkx6DqFJVBpKpSSD/+2W7cXKshy8FkHRJuFDU=; b=Q/FJy00cXJlHtWihB5mXyObvZUNLtQU7tRrrjvouJSerN+S1JPGC7cF44iCQ/b+ESe GOrYLSM3LfssPJfE3kYnQpXBVqSqYDC/sKbb3vz63pf0zpMFCtK9v8LrSgIpxDym0Tnj 6XyFFXY4ua3/DV+rGzGepkdLTqAyoaC85BRMZj3T5Chqub0po7HEeo2+LB9HhJRx0Jdv 2MQGb2SGTY7yT+C7nQisUTZB2EP0jn3gbb50b0PbX+dyfSB0tFHri4Q73lXudOHGoD6x mGcsjHwBhkBiFBohOLMU60tryeqY8jcO2qwXUBYkh7cdq7jq8tjkBheoF89bPhYgnL96 0gNA== 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 t184si682088pgc.320.2019.05.23.00.36.45; Thu, 23 May 2019 00:37:00 -0700 (PDT) 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 S1730178AbfEWHf2 (ORCPT + 99 others); Thu, 23 May 2019 03:35:28 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:15999 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727232AbfEWHfX (ORCPT ); Thu, 23 May 2019 03:35:23 -0400 X-UUID: 864bf361aa5b4a52b11e6e1b6f7e7682-20190523 X-UUID: 864bf361aa5b4a52b11e6e1b6f7e7682-20190523 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 802912487; Thu, 23 May 2019 15:35:14 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n1.mediatek.inc (172.21.101.181) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 23 May 2019 15:35:12 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 23 May 2019 15:35:11 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang , Nicolas Boichat , Matthias Brugger CC: Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Zhenbao Liu , Long Cheng Subject: [PATCH v13 0/2] add uart DMA function Date: Thu, 23 May 2019 15:35:07 +0800 Message-ID: <1558596909-14084-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-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/mediatek. 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 DMA Changes compared to v12 -rename parameters -remove direction Changes compared to v11 -modify TX/RX -pause function by software Changes compared to v10 -modify DMA tx status function -modify 8250_mtk for DMA rx -add notes to binding Document. Changes compared to v9 -rename dt-bindings file -remove direction from device_config -simplified code Changes compared to v8 -revise missing items Changes compared to v7: -modify apdma uart tx Changes compared to v6: -Correct spelling 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): arm: dts: mt2712: add uart APDMA to device tree serial: 8250-mtk: modify uart DMA rx arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 +++++++++++++++++++++++++++++ drivers/tty/serial/8250/8250_mtk.c | 49 +++++++++++---------------- 2 files changed, 71 insertions(+), 29 deletions(-) -- 1.7.9.5