Received: by 10.192.165.148 with SMTP id m20csp351621imm; Thu, 26 Apr 2018 23:20:59 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrSsbBefrvFnAmNAXJrTYeT4EWTnoyJs3uCyck+MN+E08UmhMHBmBBmsE0j6Sa2VsICYFD9 X-Received: by 10.98.68.135 with SMTP id m7mr1034333pfi.57.1524810059279; Thu, 26 Apr 2018 23:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524810059; cv=none; d=google.com; s=arc-20160816; b=iDejWLIoaOuYJUvLgr0qrHLQwj6e5/gvrGujX9oPSM0ST8sko7DkwKPhPR5ohytsM7 dZLge2sh+gedueSudQXElSqOzExXjDz1WRcAWru4NRCiBg3Ha/2hNO8BcrIfAWdSC2U8 s5CujtUJ/WVcY82l6bBVFm9ITzxsYmkwY1LPmBNjAJjjxQ9jFW5TnvAIP8JptidiAHGV y6i/JBJkHQt5MtU7sHGzVaEvlutbvkao0J0o6o6atfS2i31LOeHOKebq/HdG2P0DFyeB hZCyc+zI2bRH1llha8QpSnNf8U6TrvSy/9zdmZ1P2+Rs1cLiI4CpmeBDrh8GPKwufbdh s4JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ZALLl29yI/aW/yKa9AbZ+ruXyloXsCye0MMaZ7niDw8=; b=Z2g6XUlYxuJYBSWWEM0M5G/cc2DFWcjy6y6mE6WB9QKJokcyUCWp06y6G7JuNYO0YE Qcz0UJc0Tl+aQssZqZ6wU6nT7p6gN0eHA964tLHRlEZPmiwyHuzG5MGhbDcUF6yvXSSg AiBiLfFZgQI8H5Saoafhj7XHMQqesyC1TBxKJ0Sv0LXraV0ZLdvHc45VnspfiE+n2oGq ihFIsZFT/MVOI/Z0DmCqCrvWKu7VK5pYoVC/XQMPqCu1I55wRDog5/yMmPyoOcYiClAd xj/XCbuGc3cq9k895fUVDG/CDWle7nfaeJv/rlUK7Rirux/uigJNzlCx67Fc2Sl7iWTN DqvQ== 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 a2-v6si600164plp.316.2018.04.26.23.20.45; Thu, 26 Apr 2018 23:20: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 S1757459AbeD0GT1 (ORCPT + 99 others); Fri, 27 Apr 2018 02:19:27 -0400 Received: from mga12.intel.com ([192.55.52.136]:49959 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752108AbeD0GT0 (ORCPT ); Fri, 27 Apr 2018 02:19:26 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Apr 2018 23:19:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,334,1520924400"; d="scan'208";a="36561800" Received: from vkoul-udesk7.iind.intel.com (HELO localhost) ([10.223.84.143]) by orsmga007.jf.intel.com with ESMTP; 26 Apr 2018 23:19:22 -0700 Date: Fri, 27 Apr 2018 11:54:06 +0530 From: Vinod Koul To: Baolin Wang Cc: dan.j.williams@intel.com, eric.long@spreadtrum.com, broonie@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/5] dmaengine: sprd: Add Spreadtrum DMA configuration Message-ID: <20180427062405.GY6014@localhost> References: <2ec1e8ddade0be5b4412b031b98d0d69a1af421f.1524054807.git.baolin.wang@linaro.org> <30ff22774f045db654d5e784716c3ee69e00775d.1524054807.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30ff22774f045db654d5e784716c3ee69e00775d.1524054807.git.baolin.wang@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- ~Vinod