Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp246809imu; Thu, 6 Dec 2018 23:49:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/W9/Z3K2L0siXcU0TduArnSQvVi3ZksstFITPHBRr69ReVguZnzOrhX25wAchWnM3Ii6Bbw X-Received: by 2002:a17:902:20c6:: with SMTP id v6mr1197112plg.156.1544168995743; Thu, 06 Dec 2018 23:49:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544168995; cv=none; d=google.com; s=arc-20160816; b=OqZkdIzK9EgSoGeubLniIGWPGqVOhl28Fqtwzz7PEA/7RYXQKsbuSyg84tvvjTVXmq nappbO3xxRwukV+Lw4gscIZgZl0/1YFu7wqfu8ZOrgN5dhHYODQER/xPPedGnApzqfsg Xn8ZIz1yAsl1ftkadAmMNBfkpQXy0fKkVWXsgEyWPJXQGXPjQyX2RHZ/zQoVQOrfn1mB HRcDGnYC3hISAJP/9JaFrOThPHr/6yjzbGwVs5JY+E5y65urFR67V7hcw1AzAEssywy1 YBLamVAl8PNdwJz6eDANb3kV7s1qV6sNbK6J89NjneEvT3JVOlhJ8YLZjvL2/vmHxYXD Zb5g== 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=IQwHy3tHuRkmz5DNvofw7pW0Ay6+OyFNhdUfzeG0JsA=; b=kbuMpbU3Cn8cQl66wwMbfsPjv8uj69ZwYKelzMdb6+ZoysIYpjXzcQw0NARYaPDOdH t+Ju8/DdMBnpqkdgc0LRfS/AyVU2FBeNO87FB/fMWwcxKGAM2narPPc91kyIALfQmETJ VvBOwJsPWz2C8kjLGuB0L+3WGVuoDwu+8jDX1BtLgz7/Zft7TcUVVu79H/WS5esGsO+J PM34jRoZk9OECdVMpZKpOMlYnMNb0a2GnQxvz5xT1wB/xQpFTyCpFJ+uITB2V/8lPaif LXEgWdRLdENi9A/59TsswMW558YB7qK0JlkB8yGDPnk0u6Jg7xmZ6BHHvDpgLMbMPs2a yktw== 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 n34si2326325pld.381.2018.12.06.23.49.40; Thu, 06 Dec 2018 23:49:55 -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 S1726097AbeLGHrh (ORCPT + 99 others); Fri, 7 Dec 2018 02:47:37 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:23176 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725952AbeLGHrg (ORCPT ); Fri, 7 Dec 2018 02:47:36 -0500 X-UUID: 95ffd9d0e0cd46a4b5d1582e7a56c99d-20181207 X-UUID: 95ffd9d0e0cd46a4b5d1582e7a56c99d-20181207 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 600503054; Fri, 07 Dec 2018 15:47:28 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 7 Dec 2018 15:47:27 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 7 Dec 2018 15:47:26 +0800 From: Long Cheng To: Vinod Koul , Rob Herring , Mark Rutland CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Long Cheng Subject: [PATCH v3 0/2] add uart DMA function Date: Fri, 7 Dec 2018 15:47:19 +0800 Message-ID: <1544168842-13860-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. 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 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: mt2701: add uart APDMA to device tree arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 ++ drivers/dma/mediatek/8250_mtk_dma.c | 847 +++++++++++++++++++++++++++++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + 4 files changed, 909 insertions(+) create mode 100644 drivers/dma/mediatek/8250_mtk_dma.c -- 1.7.9.5