[Sound-open-firmware] [PATCH v3 1/6] platform: dma: move dmac initialization

Liam Girdwood liam.r.girdwood at linux.intel.com
Sun Jun 10 21:36:52 CEST 2018


On Fri, 2018-06-08 at 15:18 -0700, Ranjani Sridharan wrote:
> +
> +/* Initialize all platform DMAC's */
> +int dmac_init(void)
> +{
> +       int i, ret;
> +
> +       for (i = 0; i < ARRAY_SIZE(dma); i++) {
> +               ret = dma_probe(&dma[i]);
> +               if (ret < 0) {
> +
> +                       /* trace failed DMAC ID */

We also need a trace error string too otherwise the number below is ambiguous. 

> +                       trace_error_value(dma[i].plat_data.id);
> +                       return ret;
> +               }
> +       }
> +
> +       return 0;
> +}


More information about the Sound-open-firmware mailing list