From patchwork Sat Sep 29 05:48:58 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: 10620625 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 987AF15A6 for ; Sat, 29 Sep 2018 05:50:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B05B2AFA4 for ; Sat, 29 Sep 2018 05:50:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EC7D2AFF5; Sat, 29 Sep 2018 05:50:00 +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 29FEE2AFA4 for ; Sat, 29 Sep 2018 05:50:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727431AbeI2MRD (ORCPT ); Sat, 29 Sep 2018 08:17:03 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:35484 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727427AbeI2MRC (ORCPT ); Sat, 29 Sep 2018 08:17:02 -0400 Received: by mail-pg1-f193.google.com with SMTP id v133-v6so5904859pgb.2 for ; Fri, 28 Sep 2018 22:49:58 -0700 (PDT) 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=S9IMtv7hnjaeY8h//I9X4VSLRH8y6+x4asMn1p7S52NEy8CvhPp1lH1+PsCi8N8y/j wj8eV93GA4KXjogrwMq+ajoGLi6utuVahRsoNsrgyJP1ip2W3KBrWhDTuXB0FXhkRGBt IlbgDUZBD3G4jlgt34GAs+NsQp9RDuyHY8Ewk= 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=Lt8ilRGzX3VwWdn2QsQwA7FxSO1N5YjCVWCOzmJI8YkvSLtWOo9I9NwVYlfkRGjY/i GKZrQmk7/Fr0qzQ+E7W00Co/zSa9q1r/mcvolQKe4qpPjdqj6Zjib9Bq6Gl1ezQOzuDC yy8Izcaa/iR21BPpfA05KtaR94V6REytww8BWljrvmj/LjL9bFP7k5erPbfz52zf6xWa z0bo7NkyJFoTQALREt6Cz/eoL5KrRsY+6OsK5Hlrxq2aCM2+OtWo4XsveG47FIxT9bFk VROcTlSYo3ImiS1QF1mv9dqtBk2Sx/PBeB+5C7qa6LPF/x4m7aTJLjRMX35LLsZGcFNz GzEA== X-Gm-Message-State: ABuFfoi9puilIZMUTPoIB++1Vm4DfrImu6b87xJmobJBljh4tAORbMLX HHCq8N6j0RSNatVoL52Nk+bR0g== X-Google-Smtp-Source: ACcGV60Xh+6b3YeOTLISPP+rJvGbFpF3BveZmc9vlGPQQJ7QNKYvCb+sMW9l3B7LPOU777wfnY3MPQ== X-Received: by 2002:a62:b87:: with SMTP id 7-v6mr1733705pfl.67.1538200198553; Fri, 28 Sep 2018 22:49:58 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id i80-v6sm11118049pfi.87.2018.09.28.22.49.54 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Sep 2018 22:49:57 -0700 (PDT) From: Baolin Wang To: dan.j.williams@intel.com, vkoul@kernel.org, eric.long@spreadtrum.com Cc: broonie@kernel.org, baolin.wang@linaro.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] Add some fixes and new feature for SPRD DMA Date: Sat, 29 Sep 2018 13:48:58 +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(-)