Received: by 10.192.165.156 with SMTP id m28csp776492imm; Mon, 16 Apr 2018 08:32:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/oKC3yyJbbJ8kjAcWrIlueB9qkNjUBwIAWhH3pXjyfy95aESQujaz/4md3aFOcv1xoh/Jy X-Received: by 10.99.45.2 with SMTP id t2mr13276485pgt.356.1523892764762; Mon, 16 Apr 2018 08:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523892764; cv=none; d=google.com; s=arc-20160816; b=Qp+TQMqEh0FChaAgolwhJ8CHQKj5cCG6laHepAOmmGesg7a19FwpZD2NdxcHOe3BOR Rx3lKUuetN9COgOvDZFqRf/5EFKTU1oa7IUiM2jXBlPJR+mwsEjlBZAdWrbDJ72Nhf65 Nqd4htxsoslx0w6o/uPHcB3Pm8wfWej3rGPqAx5TXmzi6roOAHJw/ULx/Y2ZVlOgzKct lsgTjKDcDAYuUrsNEXhiGphaoA8+hSad+qeeBekwO7IvBIVwHo6jjhfghbUxTzUgFjNL FNUXHwLcGMYxBnxUQCKRRYdBaDsySpy4gPII91XjdlMWlGkwZFWFO54ag6N1kawgRiK2 93pA== 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=cL4MjJtSsY4zK01gY2iSnwvmt7tFakBPpDjHeMVFUJY=; b=MUTwrEzPUbXoMMK1vP2+z+yw/hxoY9NasJanVOjxaTNwp1T0EKBkiW+tlTpm3hUfsq JkHC0rNX38ldBTi6HUNWQ1BXXsUdsNGtiVarC8La9l4i3BMhbQS60T6cneWlz4UvrxBo kfjk4BAYRm95dEVal/RccUBdXLbjK4zj5XzXnW64gEI9A04cKqiR2VnG5JyHkRF+IIPe butg7s75Bf0otVmi82pB9OOH94O/uOcJHEXwd9usXxggQ5N/40wUYGehVBdoljIbuKyA uk3VTjgTQEU9FUvi0VpJQm0XBNjPh+pN31Iv3utwkyHHJ++D99/Ajjhlt5BeBbtpFC2o Fzbg== 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 g12-v6si12035442pla.382.2018.04.16.08.32.31; Mon, 16 Apr 2018 08:32:44 -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 S1753146AbeDPPad (ORCPT + 99 others); Mon, 16 Apr 2018 11:30:33 -0400 Received: from mga02.intel.com ([134.134.136.20]:40717 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbeDPPab (ORCPT ); Mon, 16 Apr 2018 11:30:31 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Apr 2018 08:30:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,459,1517904000"; d="scan'208";a="32380115" Received: from vkoul-udesk7.iind.intel.com (HELO localhost) ([10.223.84.143]) by fmsmga007.fm.intel.com with ESMTP; 16 Apr 2018 08:30:27 -0700 Date: Mon, 16 Apr 2018 21:05:01 +0530 From: Vinod Koul To: Baolin Wang Cc: Dan Williams , Eric Long , Mark Brown , dmaengine@vger.kernel.org, LKML Subject: Re: [PATCH 4/5] dmaengine: sprd: Add Spreadtrum DMA configuration Message-ID: <20180416153501.GQ6014@localhost> References: <20180412093735.GF6014@localhost> <20180413034332.GI6014@localhost> <20180413063641.GL6014@localhost> <20180416035831.GO6014@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon, Apr 16, 2018 at 02:32:05PM +0800, Baolin Wang wrote: > >> Beside the general configuration, our audio driver will configure the > >> fragment length, block length, maybe transaction length, and they must > >> specify the request type and interrupt type, these are what we want to > >> export for users. > > > > As I said before, you need to derive fragment, block or transaction from > > I am sorry I did not make things clear here. What I mean is not only > link list mode(prep_cyclic), but also other modes (prep_slave, > prep_interleaved ...), users still need to configure the fragment > length, block length or transaction length according to their > requirements. Other modes are similar, they also use the parameters programmed from dma_slave_config. Pls see other driver examples. IIRC dw dma has similar capabilities but not all are exposed to user and driver configures. -- ~Vinod