Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4589235imb; Wed, 6 Mar 2019 17:47:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzBE3uVhutRPtGI/dLA5hJhCiG4uSmyi3mPhysIbdMa0Cut8E8m1HxjvgPG+9zH3OKges18 X-Received: by 2002:a17:902:1025:: with SMTP id b34mr10361633pla.306.1551923255911; Wed, 06 Mar 2019 17:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551923255; cv=none; d=google.com; s=arc-20160816; b=u+60dlH5OdhjLQi8y4WVfpfY2c9fdAOKTHSj8pLvxcRT+NA4zYk5Vgt+jGvBQJpXLU oHZRx3mXfRUtFFaynFJE8SSL6HGA7vr4lxT9mAljohl4QN2LWiQ9O9Nm3mEwlPc4UNcl ViJCTxDKjmB+KQ0nvPNFxuJjmcgsffmPSvawUxZKMYbAyeuMfriPQMRgjD3ipkxwnZGl H1F+fKYmRyIff6ojIRvpJpwE+OziCcHJrwB7L6pipYnYe/m6pX04Ad4UkI5x4o4fV3bv jQCjMWRgiQok+SIshDUlMBCwI+mV8RtIFlEFR/TxoIqmiGwOnoZEhMdCXVyPBFmHJO/X JOZQ== 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=Ct8EIFcNXduuS/Ge88Gu9yTcdWVx7oTnUGozV106EjA=; b=Geuan9rGqX0b+MKjRT0x3fqFWFwlwqaOSBMzr8dEktgS9Vm3dXt5c+pjmKAW+f7K81 wsDqaX1ARhmgFW+SOPzSkqUuDaWudxOpHqFlnof+3IaNaFwF9xliwfP+mVmyFZhy3aC5 RbEmgn3fXSL4p8zxWezgRgjIVW4Mc2IWVCCVzEIJIb+akYaQYO471mRpB5m/CGEOzQHo d38J+0QvGWJM+OfkacD9bhVRXd1NG/IcVHV4qrTt0Dines7ErGsn52yGovnGVDvx4kW9 yHj9A4Jjd/uI1fygc/6P36o7PURt4w2/AvsfExWhCS0s0WTVos795rs+fBOhqAijTEuF +q0Q== 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 u7si2752908plz.379.2019.03.06.17.47.20; Wed, 06 Mar 2019 17:47:35 -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 S1726568AbfCGBpq (ORCPT + 99 others); Wed, 6 Mar 2019 20:45:46 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:33185 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726010AbfCGBpp (ORCPT ); Wed, 6 Mar 2019 20:45:45 -0500 X-UUID: 6f24fb79486743b48b66c80857b5f88f-20190307 X-UUID: 6f24fb79486743b48b66c80857b5f88f-20190307 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1509142649; Thu, 07 Mar 2019 09:45:39 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 7 Mar 2019 09:45:38 +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, 7 Mar 2019 09:45:37 +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 v11 0/4] add uart DMA function Date: Thu, 7 Mar 2019 09:45:31 +0800 Message-ID: <1551923135-32479-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 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: 8250_mtk_dma: add MediaTek uart DMA 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 | 660 ++++++++++++++++++++ drivers/tty/serial/8250/8250_mtk.c | 53 +- 7 files changed, 801 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