[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4b9f3d2b-e1e4-48a4-c0e2-624bac77dba9@samsung.com>
Date: Mon, 13 Jan 2020 12:22:51 +0100
From: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
To: Peter Ujfalusi <peter.ujfalusi@...com>
Cc: axboe@...nel.dk, vkoul@...nel.org, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ata: pxa: Use dma_request_chan() instead
dma_request_slave_channel()
On 12/17/19 8:40 AM, Peter Ujfalusi wrote:
> dma_request_slave_channel() is a wrapper on top of dma_request_chan()
> eating up the error code.
>
> By using dma_request_chan() directly the driver can support deferred
> probing against DMA.
>
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@...com>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
> ---
> drivers/ata/pata_pxa.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/ata/pata_pxa.c b/drivers/ata/pata_pxa.c
> index 41430f79663c..71678bed04b0 100644
> --- a/drivers/ata/pata_pxa.c
> +++ b/drivers/ata/pata_pxa.c
> @@ -274,10 +274,9 @@ static int pxa_ata_probe(struct platform_device *pdev)
> /*
> * Request the DMA channel
> */
> - data->dma_chan =
> - dma_request_slave_channel(&pdev->dev, "data");
> - if (!data->dma_chan)
> - return -EBUSY;
> + data->dma_chan = dma_request_chan(&pdev->dev, "data");
> + if (IS_ERR(data->dma_chan))
> + return PTR_ERR(data->dma_chan);
> ret = dmaengine_slave_config(data->dma_chan, &config);
> if (ret < 0) {
> dev_err(&pdev->dev, "dma configuration failed: %d\n", ret);
>
Powered by blists - more mailing lists