Received: by 10.192.165.148 with SMTP id m20csp3514836imm; Mon, 30 Apr 2018 01:18:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZodihRrfaergxAShWhUNml4s9+RzUa3CheDzi2TRh7gPhfdFGJFCNk71B9gcxhIBC0SN2kw X-Received: by 2002:a63:9a42:: with SMTP id e2-v6mr217819pgo.335.1525076319788; Mon, 30 Apr 2018 01:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525076319; cv=none; d=google.com; s=arc-20160816; b=0K1O9dDeWaAXCMHGyoGAZ7iLuhtHz5oJS3gz5EEktFlJ1avP8OL728IebWKX+C94tn GI5eYAoZmjHWynsC7hbBFzwx7o+nhDKZRw3Z0qSVycSF6Hc+AzvMMoUXyQ3P2E8FzyEg 1012bnahClYVFQT3Z2u8I+5LAQwF1atHyCMq24y1yf/szDOiXLJFD6dADj+hj7BlSkgG 1Rc6okbwRYXlB1NaftIyhhMaSlhBRzL309w0624id3H6NflvraIa4lVn3WbTtVvbnUJm Sx3bfwwGYwGdpbpiFWvMU1JIQE6sruevvrXPRO5KdIs8clYnTeXwJu6a34f2dPxEpxEd eG1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Npq+q04lVz4plkqPofaaDuaFU5HImrJEE67p++VLxEE=; b=067w635FjRReVmvrqhG+vzOS8/qv3rNAGblUBwdjO4nzL0CAhKPwBqMVaObMS23/hD qx+vNdL7Odk/GrauQtzSRnjumMfRKLCd3d9d6QE65P8XPQpm/IUH3ULUJUT5YKPtKMy4 9ZtJ5O4pE1htrRfAJ6vDxabSdtmYTY8colGKAJmO5NyFiy+yNw4E1hygl+c7oyoNQrhc YzytEltZzjAwcNLUQ/lrmv+Ly0pXf2AitxQtVbuYcA15md2BVYrak4f5y4ZQYp63PipF GwIj7MSgxr0equp8moKesbIpkiKu139/wkbL+FCRKdPVTD4X/sdtm7Y0vc3qtTL0AyYf 1tHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PZo62wle; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1-v6si2212380plb.204.2018.04.30.01.18.26; Mon, 30 Apr 2018 01:18:39 -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; dkim=pass header.i=@linaro.org header.s=google header.b=PZo62wle; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752475AbeD3ISF (ORCPT + 99 others); Mon, 30 Apr 2018 04:18:05 -0400 Received: from mail-ot0-f171.google.com ([74.125.82.171]:37913 "EHLO mail-ot0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbeD3ISD (ORCPT ); Mon, 30 Apr 2018 04:18:03 -0400 Received: by mail-ot0-f171.google.com with SMTP id j27-v6so8605746ota.5 for ; Mon, 30 Apr 2018 01:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Npq+q04lVz4plkqPofaaDuaFU5HImrJEE67p++VLxEE=; b=PZo62wleZHqocJmO/Ne765UVGMZ+aMKmXPG/vRGhMPUvF9cnyP07IWpadHYj4+TPbT 6OjVqjT9pUBDJP2byWDjXM5zubkIC1SeZdOoeIvaRKyPe8S5K6GjN71vvoZ6/KhX0PTL BNUZAUxSCsZwfje7jOw0YGquocNBirNaDzCjI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Npq+q04lVz4plkqPofaaDuaFU5HImrJEE67p++VLxEE=; b=iYB9rG6FO4oVbvoQTZdHI+OozesdB7eue4bCoh1Zxz92ZOX3XV0e8p5SWolPP9MZ/H 9Bucw8RB9s+rAXw1iNn+qPcEW6aMdms371vrTO9ZZtOc+/8zueVyVGw70PqZrskAQOtN E1yPVs3sYtRRbzwsFWe8pvwI2dnLUlXz0uzYM3USRyxW1WhsrUFgW7PoRVWLLbsKX/Wr 5jWBUXlGQkNGBzBJOX7PcjpySvhpDPLKHopi2n2ho3fkA8jXSVD8HK9SoNKM7KIETDcU 2i+LPj5eWhvVg9qPF8nmYYrfvURWIXJHsbr/2Bm8gHDLxF2FZx6sNmGCPHVJqTCMNmg8 U4gw== X-Gm-Message-State: ALQs6tA/SI0sx6YtWTjQLArvve50PP/lj4lPkyTlwCrMM1Qf54Sls7G6 8D7IhXTAOea4Zcd2I3hHslDkDAVFJ+08f1K5ygE5rQ== X-Received: by 2002:a9d:2302:: with SMTP id j2-v6mr8042263otb.141.1525076282831; Mon, 30 Apr 2018 01:18:02 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2d77:0:0:0:0:0 with HTTP; Mon, 30 Apr 2018 01:18:02 -0700 (PDT) In-Reply-To: <20180427062405.GY6014@localhost> References: <2ec1e8ddade0be5b4412b031b98d0d69a1af421f.1524054807.git.baolin.wang@linaro.org> <30ff22774f045db654d5e784716c3ee69e00775d.1524054807.git.baolin.wang@linaro.org> <20180427062405.GY6014@localhost> From: Baolin Wang Date: Mon, 30 Apr 2018 16:18:02 +0800 Message-ID: Subject: Re: [PATCH v2 4/5] dmaengine: sprd: Add Spreadtrum DMA configuration To: Vinod Koul Cc: Dan Williams , Eric Long , Mark Brown , dmaengine@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vinod, On 27 April 2018 at 14:24, Vinod Koul wrote: > On Thu, Apr 19, 2018 at 10:00:49AM +0800, Baolin Wang wrote: > >> +/* >> + * struct sprd_dma_config - DMA configuration structure >> + * @src_addr: the physical address where DMA slave data should be read >> + * @dst_addr: the physical address where DMA slave data should be written >> + * @fragment_len: specify one fragment transfer length >> + * @block_len: specify one block transfer length >> + * @transcation_len: specify one transcation transfer length >> + * @src_step: source transfer step >> + * @dst_step: destination transfer step >> + * @src_datawidth: source transfer data width >> + * @dst_datawidth: destination transfer data width >> + * @wrap_ptr: wrap pointer address, once the transfer address reaches the >> + * 'wrap_ptr', the next transfer address will jump to the 'wrap_to' address. >> + * @wrap_to: wrap jump to address >> + * @req_mode: specify the DMA request mode >> + * @int_mode: specify the DMA interrupt type >> + * @slave_id: slave channel requester id >> + */ >> +struct sprd_dma_config { > > can you please not duplicate the dma_slave_config here. If you want to save > your own values then please embed dma_slave_config here Thanks for your suggestion. Will fix this in next version. -- Baolin.wang Best Regards