From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Subject: [4/5] dmaengine: sprd: Add Spreadtrum DMA configuration From: Baolin Wang Message-Id: Date: Tue, 17 Apr 2018 14:06:54 +0800 To: Vinod Koul Cc: Dan Williams , Eric Long , Mark Brown , dmaengine@vger.kernel.org, LKML List-ID: T24gMTYgQXByaWwgMjAxOCBhdCAyMzozNSwgVmlub2QgS291bCA8dmlub2Qua291bEBpbnRlbC5j b20+IHdyb3RlOgo+IE9uIE1vbiwgQXByIDE2LCAyMDE4IGF0IDAyOjMyOjA1UE0gKzA4MDAsIEJh b2xpbiBXYW5nIHdyb3RlOgo+Cj4+ID4+IEJlc2lkZSB0aGUgZ2VuZXJhbCBjb25maWd1cmF0aW9u LCBvdXIgYXVkaW8gZHJpdmVyIHdpbGwgY29uZmlndXJlIHRoZQo+PiA+PiBmcmFnbWVudCBsZW5n dGgsIGJsb2NrIGxlbmd0aCwgbWF5YmUgdHJhbnNhY3Rpb24gbGVuZ3RoLCBhbmQgdGhleSBtdXN0 Cj4+ID4+IHNwZWNpZnkgdGhlIHJlcXVlc3QgdHlwZSBhbmQgaW50ZXJydXB0IHR5cGUsIHRoZXNl IGFyZSB3aGF0IHdlIHdhbnQgdG8KPj4gPj4gZXhwb3J0IGZvciB1c2Vycy4KPj4gPgo+PiA+IEFz IEkgc2FpZCBiZWZvcmUsIHlvdSBuZWVkIHRvIGRlcml2ZSBmcmFnbWVudCwgYmxvY2sgb3IgdHJh bnNhY3Rpb24gZnJvbQo+Pgo+PiBJIGFtIHNvcnJ5IEkgZGlkIG5vdCBtYWtlIHRoaW5ncyBjbGVh ciBoZXJlLiBXaGF0IEkgbWVhbiBpcyBub3Qgb25seQo+PiBsaW5rIGxpc3QgbW9kZShwcmVwX2N5 Y2xpYyksIGJ1dCBhbHNvIG90aGVyIG1vZGVzIChwcmVwX3NsYXZlLAo+PiBwcmVwX2ludGVybGVh dmVkIC4uLiksIHVzZXJzIHN0aWxsIG5lZWQgdG8gY29uZmlndXJlIHRoZSBmcmFnbWVudAo+PiBs ZW5ndGgsIGJsb2NrIGxlbmd0aCBvciB0cmFuc2FjdGlvbiBsZW5ndGggYWNjb3JkaW5nIHRvIHRo ZWlyCj4+IHJlcXVpcmVtZW50cy4KPgo+IE90aGVyIG1vZGVzIGFyZSBzaW1pbGFyLCB0aGV5IGFs c28gdXNlIHRoZSBwYXJhbWV0ZXJzIHByb2dyYW1tZWQgZnJvbQo+IGRtYV9zbGF2ZV9jb25maWcu IFBscyBzZWUgb3RoZXIgZHJpdmVyIGV4YW1wbGVzLiBJSVJDIGR3IGRtYSBoYXMKPiBzaW1pbGFy IGNhcGFiaWxpdGllcyBidXQgbm90IGFsbCBhcmUgZXhwb3NlZCB0byB1c2VyIGFuZCBkcml2ZXIg Y29uZmlndXJlcy4KCkknbGwgY2hlY2sgdGhlIGR3IGRtYS4gUmVhbGx5IHRoYW5rcyBmb3IgeW91 ciBoZWxwIDopCg== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751183AbeDQGG5 (ORCPT ); Tue, 17 Apr 2018 02:06:57 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:41202 "EHLO mail-oi0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750790AbeDQGGz (ORCPT ); Tue, 17 Apr 2018 02:06:55 -0400 X-Google-Smtp-Source: AIpwx4+LigAiBTt7JHlB+1WPE7vGgpWk7soK11DlCKkBdiJJnPY/tR4yOlTghYJm86dsuP8EQGSAMo+QslwcYHmNj4U= MIME-Version: 1.0 In-Reply-To: <20180416153501.GQ6014@localhost> References: <20180412093735.GF6014@localhost> <20180413034332.GI6014@localhost> <20180413063641.GL6014@localhost> <20180416035831.GO6014@localhost> <20180416153501.GQ6014@localhost> From: Baolin Wang Date: Tue, 17 Apr 2018 14:06:54 +0800 Message-ID: Subject: Re: [PATCH 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16 April 2018 at 23:35, Vinod Koul wrote: > 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. I'll check the dw dma. Really thanks for your help :) -- Baolin.wang Best Regards