Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1366815yba; Fri, 26 Apr 2019 20:39:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2NQtFBz83meh37yikDw8VUknjdhKq6/pUlQz88/uYkSUhk1Ktl4Xz9c+rdGNTg6eQ9Uev X-Received: by 2002:a63:b0b:: with SMTP id 11mr12097882pgl.445.1556336399241; Fri, 26 Apr 2019 20:39:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556336399; cv=none; d=google.com; s=arc-20160816; b=PXHkTmDyoLPuyQBnRwJ6ibk/o78WGnmSdpsOy7JJBF88SrqnlXDRSermvmuIBwVYel dpyVgJtuhX6uDzgdr2WOkeK9OdWkuPtWuNB4mYmWo14LyEmJp/tLPHV3cLcsi5gPLKMR sA5e0K5uBerrcKgtzc3JV4ho43jeBR0VVM/4JMThv2YMOjCWQPR4CBTkZyc7Mq7EvR22 tO9XaxNg5NSP20R8EdzOXuBYVnI+v61ESGvRQStBH3Lf0hjhWLOOsvL7T6Nukcj7JWt6 erreAQrtQLazlFjyc0wWngBpcTfb8F30QLeIN9q0vt3sneRgcTCdGKpr2ZXTA4bWi7U8 +zkg== 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=J9hcl6FVQkFIK9xUsMElbGhAxQkZkcvdsqNs/Szgl8w=; b=mMslk0Fjizva1vRcdPNiWkxVe4XRjkLZyOncLDkG9YyJF8xr+QmXhfZ26uTg6pYPby fKUfIZk/nwAen50d0Ng9lJumMNdKU2CNGfCEnAqiZH63eHR22FLsHlA4H7iNLXFvUKyI 1ZrRK+NgAg07p5Pmwh0/qbfVjvS0Xn8RDdMLl4YVtjacZzQI9SUYVcPnPt7sH6QY3E7j uvZiLcYN7GhIaQBh6QHL2AhFfyzlnpx1sIuuhjVDyB5dra8jZeTkigSe1kQCo4CETbC5 u6IShhO+Nr7xXef5FgyqJkbxz/DyWjVJPR+Qx6C8lTjSq+IwbuWwNdJkIkGON/6nDXHa 45yQ== 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 r9si26768870pls.323.2019.04.26.20.39.43; Fri, 26 Apr 2019 20:39:59 -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 S1727341AbfD0Dgt (ORCPT + 99 others); Fri, 26 Apr 2019 23:36:49 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:27878 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725933AbfD0Dgs (ORCPT ); Fri, 26 Apr 2019 23:36:48 -0400 X-UUID: 69dd131840a548239512be439ae1e945-20190427 X-UUID: 69dd131840a548239512be439ae1e945-20190427 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1103383770; Sat, 27 Apr 2019 11:36:42 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 27 Apr 2019 11:36:40 +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; Sat, 27 Apr 2019 11:36:40 +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 v12 0/4] add uart DMA function Date: Sat, 27 Apr 2019 11:36:29 +0800 Message-ID: <1556336193-15198-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: 380E7148DB3C720F74ADAE99429A073B5931D5CE5B02F9DD34F8311691EB87102000: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/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 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 (4): dmaengine: mediatek: Add MediaTek UART APDMA support arm: dts: mt2712: add uart APDMA to device tree dt-bindings: dma: uart: rename binding serial: 8250-mtk: modify uart DMA rx .../devicetree/bindings/dma/8250_mtk_dma.txt | 33 - .../devicetree/bindings/dma/mtk-uart-apdma.txt | 55 ++ arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 51 ++ drivers/dma/mediatek/Kconfig | 11 + drivers/dma/mediatek/Makefile | 1 + drivers/dma/mediatek/mtk-uart-apdma.c | 666 ++++++++++++++++++++ drivers/tty/serial/8250/8250_mtk.c | 53 +- 7 files changed, 807 insertions(+), 63 deletions(-) delete mode 100644 Documentation/devicetree/bindings/dma/8250_mtk_dma.txt create mode 100644 Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt create mode 100644 drivers/dma/mediatek/mtk-uart-apdma.c -- 1.7.9.5