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-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux