Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4150444imu; Mon, 24 Dec 2018 17:30:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN6dZleZHra/j1eSkLpr4uRIBGFjnex7iV3KIVl33+URBjwwpUb9GoYBLp16rUMh6GvUHgA5 X-Received: by 2002:a17:902:6b46:: with SMTP id g6mr14790084plt.21.1545701419948; Mon, 24 Dec 2018 17:30:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545701419; cv=none; d=google.com; s=arc-20160816; b=O+3MIGicOvWpr+vjR+4GOrs37DWffTK8VMmQzIqzjx480wPo1gl7eP2w8/x/wlMRKQ JgMm5ehLbixSOQXRPLXelgmjeClhkoTih6zx8lCKI180yha2tHwBX7UtHcaSjM+0OgZE IljAeK/LvqXDbQvaKsa6lxqCB7duNivOE1MSpMyRat9VTZ5MNk4FZ//dRK7AzXDCejQz s3QmZ7OiFKl0Ps/stV49ENy/bjBm3u0qEkLNqntjg/WckbBUZ+zPnpgk4RLY06kPTLoI +mM9QHcEHK5k533v7znPoIRV4yTPSrmsZ7aRptTcWYtE9Jhge3+nIG1Bc2+OvGHtUxBB by2w== 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=4clIGvrHC6At5hMGhI5TXZOzxPy0oKteaNt9IDidStA=; b=ms5eMHLsPCqvWqR9svZRPxvDh2d8UH4rvja1Wlw9qTgT902h6X1pnPNTXhAXwTSN0a ybU6qG3tpcpNTNhGANJAvOMlmzJmJdYZ3VyP4fKKaa/odeF7mmjKSwtonnfLSc6e/JR7 2rXorfZU+S+MD8DkaDT4+Wdg8Q2Q6cDb+jAn5IaFLy2odMwZBnyalxxlGUsLpCHrA7Pr GafOrVjN8cO3fGJ4Qd+Cpdo7MZvwjRtKyCxRqexIEmtQbVdo4vqn4Y74nD3i1aZlr56b F3A0RublY8MoMrDrQ79RGKORzkZq5vskLleq+N5ddgRZcvLrk7FZkowxc6pMPuNyt1xR 9u9Q== 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 t4si27999372pga.83.2018.12.24.17.29.35; Mon, 24 Dec 2018 17:30:19 -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 S1725850AbeLYB1G (ORCPT + 99 others); Mon, 24 Dec 2018 20:27:06 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:37159 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725801AbeLYB1F (ORCPT ); Mon, 24 Dec 2018 20:27:05 -0500 X-UUID: 008d9474a7294957b1590b654c612e88-20181225 X-UUID: 008d9474a7294957b1590b654c612e88-20181225 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 814840827; Tue, 25 Dec 2018 09:26:53 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 25 Dec 2018 09:26:52 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 25 Dec 2018 09:26:51 +0800 From: Long Cheng To: Vinod Koul , Randy Dunlap , Rob Herring , Mark Rutland , Ryder Lee , Sean Wang CC: Matthias Brugger , Dan Williams , Greg Kroah-Hartman , Jiri Slaby , Sean Wang , , , , , , , , Yingjoe Chen , YT Shen , Long Cheng Subject: [PATCH v7 0/2] add uart DMA function Date: Tue, 25 Dec 2018 09:26:47 +0800 Message-ID: <1545701209-6884-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 DMA 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): 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