Re: [PATCH v3 03/18] dmaengine: dma-jz4780: Avoid hardcoding number of channels

2018-07-24 Thread Vinod
On 21-07-18, 13:06, Paul Cercueil wrote: > +static const struct jz4780_dma_soc_data jz4780_dma_soc_data[] = { > + [ID_JZ4780] = { .nb_channels = 32, }, why the array of structs? > +}; > + > +static const struct of_device_id jz4780_dma_dt_match[] = { > + { .compatible = "ingenic,jz4780-dm

[PATCH v3 03/18] dmaengine: dma-jz4780: Avoid hardcoding number of channels

2018-07-21 Thread Paul Cercueil
As part of the work to support various other Ingenic JZ47xx SoC versions, which don't feature the same number of DMA channels per core, we now deduce the number of DMA channels available from the devicetree compatible string. Signed-off-by: Paul Cercueil Tested-by: Mathieu Malaterre --- drivers