[PATCH 13/31] dma: tegra: register as an OF DMA controller

Stephen Warren swarren at wwwdotorg.org
Wed Nov 20 13:22:03 EST 2013


On 11/20/2013 08:28 AM, Arnd Bergmann wrote:
> On Friday 15 November 2013, Stephen Warren wrote:
...
>> @@ -1383,6 +1409,10 @@ static int tegra_dma_probe(struct platform_device *pdev)
>>                 goto err_irq;
>>         }
>>  
>> +       tegra_dma_info.dma_cap = tdma->dma_dev.cap_mask;
>> +       ret = of_dma_controller_register(pdev->dev.of_node,
>> +                                        of_dma_simple_xlate, &tegra_dma_info);
>> +
> 
> I would suggest to use a custom xlate() function based on
> dma_get_slave_channel() that was added recently: Iterating through all
> channels is not necessary any more.

OK, I've converted to that locally, and will repost soon.



More information about the linux-arm-kernel mailing list