From patchwork Tue Nov 6 05:01:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10669621 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 879E513BF for ; Tue, 6 Nov 2018 05:02:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77C362A0F5 for ; Tue, 6 Nov 2018 05:02:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 75E522A105; Tue, 6 Nov 2018 05:02:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BA7D2A0FC for ; Tue, 6 Nov 2018 05:02:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729160AbeKFOZW (ORCPT ); Tue, 6 Nov 2018 09:25:22 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:42428 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729100AbeKFOZW (ORCPT ); Tue, 6 Nov 2018 09:25:22 -0500 Received: by mail-pl1-f196.google.com with SMTP id t6-v6so5573048plo.9 for ; Mon, 05 Nov 2018 21:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=xaTIHnBx9nGQAitv4LjbDYDAae72H66pyrlVCxGapGA=; b=OD7STvaUmtrdPHiMWg49khmosV/1hvflHbWtgWyIxGGCqOwOHR1FSvwprNlyUMw6Bd 5OMEUF2TO2vnT7/M2EyN+70WILkz+aginHyCei29mSHSxoq/G2vpdJHfPgTGRhSOhZiK GcqNhLZee0pxxmp4JoKV4kz4xv3mkLbN/o7hY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xaTIHnBx9nGQAitv4LjbDYDAae72H66pyrlVCxGapGA=; b=Ik51cglv7VsI1ZgQqnN1mdksyhNbN/pXfj/t2DJiK/tTaXxCIztSJ9MWxHMdmytgt4 1H+ieHA7ltmq1SzjnWRhV+1XcKU3ItnpXvuml7dRUdWWnF3xW9grHG/no6C87kR7Lc7O 8Wb3X8Qw4ZCTyL3bkS8acxoxQEXYDJMSkTOXAwJ43hIovKBKIJjrUb4BMc7PinaUqDyf ABU5gb8CsT+cNWGrLF5QlzJEkxkYkeWJphh2k7z11y1gLIHMLOP5flzCKuRP6tmNqTZ1 O01FXRd8IrhibrDhZzYN+9fyvj0lenmnzV8LpglAQ/2Nnj2JY/80nAgCQ7OSIxbqIqxh LNJw== X-Gm-Message-State: AGRZ1gJZtcrT1xXB33C+DAXpHDerBPiAtI1nYqWGdfEITILbgkVOoh8x Sx9zWnZLIo1e4B0nFAEr3BxZLw== X-Google-Smtp-Source: AJdET5fOLZPUHCaCCASm1ZlO4jxTQVF89mU2JeqLtmBaguTlg1OJhh6VaP/iGuJdTX1horqub50y9g== X-Received: by 2002:a17:902:5a4:: with SMTP id f33-v6mr15929917plf.324.1541480519733; Mon, 05 Nov 2018 21:01:59 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id o7-v6sm55735416pfb.23.2018.11.05.21.01.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Nov 2018 21:01:58 -0800 (PST) From: Baolin Wang To: dan.j.williams@intel.com, vkoul@kernel.org, eric.long@unisoc.com Cc: broonie@kernel.org, baolin.wang@linaro.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 0/7] Add some fixes and new feature for SPRD DMA Date: Tue, 6 Nov 2018 13:01:30 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset removes the direction usage from struct dma_slave_config, and add one new field to save the direction. It also fixes some issues for link-list transfer. Moreover this patchset adds new 2-stage transfer support for our DMA. Baolin Wang (1): dmaengine: sprd: Remove direction usage from struct dma_slave_config Eric Long (6): dmaengine: sprd: Get transfer residue depending on the transfer direction dmaengine: sprd: Fix the last link-list configuration dmaengine: sprd: Set cur_desc as NULL when free or terminate one dma channel dmaengine: sprd: Support DMA link-list cyclic callback dmaengine: sprd: Support DMA 2-stage transfer mode dmaengine: sprd: Add me as one of the module authors drivers/dma/sprd-dma.c | 152 +++++++++++++++++++++++++++++++++++++----- include/linux/dma/sprd-dma.h | 62 ++++++++++++++++- 2 files changed, 194 insertions(+), 20 deletions(-)