Re: [PATCH] mmc: s3cmci: Use DMA slave map rather than exported DMA filter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, October 26, 2016 11:08:27 AM CEST Sylwester Nawrocki wrote:
> @@ -1685,13 +1684,7 @@ static int s3cmci_probe(struct platform_device *pdev)
>         /* depending on the dma state, get a dma channel to use. */
>  
>         if (s3cmci_host_usedma(host)) {
> -               dma_cap_mask_t mask;
> -
> -               dma_cap_zero(mask);
> -               dma_cap_set(DMA_SLAVE, mask);
> -
> -               host->dma = dma_request_slave_channel_compat(mask,
> -                       s3c24xx_dma_filter, (void *)DMACH_SDI, &pdev->dev, "rx-tx");
> +               host->dma = dma_request_slave_channel(&pdev->dev, "rx-tx");
>                 if (!host->dma) {
>                         dev_err(&pdev->dev, "cannot get DMA channel.\n");
>                         ret = -EBUSY;

Can you convert it to use dma_request_chan()+PTR_ERR_OR_ZERO() instead?

Otherwise looks good, thanks for looking into this!

	Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux