From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: <b.zolnierkie@samsung.com>, <axboe@kernel.dk>
Cc: <vkoul@kernel.org>, <linux-ide@vger.kernel.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] powerpc/512x: Use dma_request_chan() instead dma_request_slave_channel()
Date: Tue, 17 Dec 2019 09:42:20 +0200 [thread overview]
Message-ID: <9b54258f-8278-38f5-7682-db72ad0e7dc2@ti.com> (raw)
In-Reply-To: <20191217074019.21732-1-peter.ujfalusi@ti.com>
Hi,
On 17/12/2019 9.40, 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.
I sent this patch to wrong participants... Forgot to change directory.
The correct (ata: pxa:) should be on it way.
> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> arch/powerpc/platforms/512x/mpc512x_lpbfifo.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c b/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
> index 13631f35cd14..04bf6ecf7d55 100644
> --- a/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
> +++ b/arch/powerpc/platforms/512x/mpc512x_lpbfifo.c
> @@ -434,9 +434,9 @@ static int mpc512x_lpbfifo_probe(struct platform_device *pdev)
> memset(&lpbfifo, 0, sizeof(struct lpbfifo_data));
> spin_lock_init(&lpbfifo.lock);
>
> - lpbfifo.chan = dma_request_slave_channel(&pdev->dev, "rx-tx");
> - if (lpbfifo.chan == NULL)
> - return -EPROBE_DEFER;
> + lpbfifo.chan = dma_request_chan(&pdev->dev, "rx-tx");
> + if (IS_ERR(lpbfifo.chan))
> + return PTR_ERR(lpbfifo.chan);
>
> if (of_address_to_resource(pdev->dev.of_node, 0, &r) != 0) {
> dev_err(&pdev->dev, "bad 'reg' in 'sclpc' device tree node\n");
>
- Péter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
prev parent reply other threads:[~2019-12-17 7:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-17 7:40 [PATCH] powerpc/512x: Use dma_request_chan() instead dma_request_slave_channel() Peter Ujfalusi
2019-12-17 7:42 ` Peter Ujfalusi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b54258f-8278-38f5-7682-db72ad0e7dc2@ti.com \
--to=peter.ujfalusi@ti.com \
--cc=axboe@kernel.dk \
--cc=b.zolnierkie@samsung.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vkoul@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox