Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3159411imu; Sun, 9 Dec 2018 18:58:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/U/z1lIxWJtQpS9XeaX80YK7xqeuqbEgY1+VjHv6IVDXIFWIV942lUsYtNJ5rFSqay3DiO0 X-Received: by 2002:a17:902:9006:: with SMTP id a6mr10446021plp.334.1544410706414; Sun, 09 Dec 2018 18:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544410706; cv=none; d=google.com; s=arc-20160816; b=HRMB3nEbTPdyoNNiYlQqi4dYvfims6u637Rk36+qOTs9MAR0chnoj13oom/G+uxcDR ShbznG533mwgRdcrRXWtJ+Q5+Yq2ddWCJURN8CKJoxXv6+x1BKU847xA9hBFITl30WHL 4m8AlJT5L+hrVSca57TLad5qB2pX1tYJHJACiR76Uzg43E0wxpnMEBI7RE/TATw1CD9f gs4qLPpY6kStGaWrQ0epMI/j7ANbHBzcnZac9rsCeJYzq3MZzIkSo9zZr3NDY3IIY4Ci OWf1JQk/b1cFINR+bLDsI2VIRl2/MjMpeudLWX117pS3MFfaugx7Tfot5GByVnGp3QK2 q0Og== 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=tnEWNyY3vKz/q9EDgoWhcT+LcUKXwUJ8lY+kaOeGBeI=; b=JxDVTZBUlwtUkHD1suL++GGNB4ixNjoDkuIYjB3s/oPy9kF7BK6nTTGSA1Nb48EZ7Z ut6VXHZm9wZ9mlfJdVx4hvNQhQGk8D8AeMpzM+MJZDAtkolHfD6D0rQXgVXJqgoGBKWi 2vKH0o6F0bMJvU2v4jQ/nRXf0BDMvbbaQa5g5NrjmxeujuUaD+e779gUwdO/TfVFO9pM nQU84UrC94xNK8VC8X4RWI2P3ppVNDEQadIqdeZBLaMiq5GZnaLwCi9ocAUJYB51IJIr n7UppdwnJt6Qg/WWlBb42u3m2qKohJpaK37ToeQHA8mApWjGHwlmkbdOF/vbAY8WRIfJ EiAg== 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 p5si8856343pfb.188.2018.12.09.18.58.08; Sun, 09 Dec 2018 18:58:26 -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 S1726390AbeLJC5a (ORCPT + 99 others); Sun, 9 Dec 2018 21:57:30 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:24335 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726281AbeLJC5a (ORCPT ); Sun, 9 Dec 2018 21:57:30 -0500 X-UUID: 64b43507a35743ee86d964a2df632ef6-20181210 X-UUID: 64b43507a35743ee86d964a2df632ef6-20181210 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 36500749; Mon, 10 Dec 2018 10:57:20 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs03n2.mediatek.inc (172.21.101.182) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 10 Dec 2018 10:57:18 +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; Mon, 10 Dec 2018 10:57:17 +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 v4 0/2] add uart DMA function Date: Mon, 10 Dec 2018 10:57:14 +0800 Message-ID: <1544410636-31815-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: 9A69695E50D5CFF14A6F0B091121B587052F7917FA3DC11E96928D71536689B52000: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 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: mt2701: add uart APDMA to device tree arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 50 ++ drivers/dma/mediatek/8250_mtk_dma.c | 830 +++++++++++++++++++++++++++++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + 4 files changed, 892 insertions(+) create mode 100644 drivers/dma/mediatek/8250_mtk_dma.c -- 1.7.9.5