lkml.org 
[lkml]   [2015]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] mtd: nand: pxa3xx-nand: switch to dmaengine
From
On 5 September 2015 at 17:02, Robert Jarzmik <robert.jarzmik@free.fr> wrote:
> Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> writes:
>
>> Robert,
>>
>> Just a couple of minor comments.
>>> + dma_unmap_sg(info->dma_chan->device->dev,
>>> + &info->sg, 1, info->dma_dir);
>>
>> Unneeded line breaking.
> Indeed, for v2.
>
>>> + r = platform_get_resource(pdev, IORESOURCE_DMA, 1);
>>> + if (r == NULL) {
>>> + dev_err(&pdev->dev,
>>> + "no resource defined for cmd DMA\n");
>>> + ret = -ENXIO;
>>> + goto fail_disable_clk;
>>> + }
>>> + info->drcmr_cmd = r->start;
>>
>> AFAICS, you only do data DMA, so this command resource can go away.
>> If you want to keep it for now and remove it as a follow up patch,
>> that's fine.
> Yeah, keep it in this patch, and change in a future patch (ie. keep current
> behavior).
>
>> Other than this minor stuff:
>>
>> Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
>> Tested-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> Thanks, I'll add that in v2.
>
>> Tested on Armada 370 to make sure it doesn't cause any regressions.
> Good. Was it on top of linux-next or linux master ?
>

linux-next
--
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar


\
 
 \ /
  Last update: 2015-09-05 22:41    [W:0.105 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site