From: Kukjin Kim <kgene.kim@samsung.com>
To: "'Inderpal Singh'" <inderpal.singh@linaro.org>,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: vinod.koul@intel.com, patches@linaro.org, boojin.kim@samsung.com,
jassisinghbrar@gmail.com
Subject: RE: [PATCH] DMA: PL330: return ENOMEM instead of 0 from pl330_alloc_chan_resources
Date: Mon, 17 Sep 2012 20:01:01 +0900 [thread overview]
Message-ID: <050c01cd94c3$b97aaa90$2c6fffb0$%kim@samsung.com> (raw)
In-Reply-To: <1347856065-14027-1-git-send-email-inderpal.singh@linaro.org>
Inderpal Singh wrote:
>
> Since 0 is not considered as error at dmaengine level, return ENOMEM
> from pl330_alloc_chan_resources in case of failure.
>
> Signed-off-by: Inderpal Singh <inderpal.singh@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
> ---
> drivers/dma/pl330.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
> index e4feba6..14d881c 100644
> --- a/drivers/dma/pl330.c
> +++ b/drivers/dma/pl330.c
> @@ -2393,7 +2393,7 @@ static int pl330_alloc_chan_resources(struct
> dma_chan *chan)
> pch->pl330_chid = pl330_request_channel(&pdmac->pif);
> if (!pch->pl330_chid) {
> spin_unlock_irqrestore(&pch->lock, flags);
> - return 0;
> + return -ENOMEM;
> }
>
> tasklet_init(&pch->task, pl330_tasklet, (unsigned long) pch);
> --
> 1.7.9.5
prev parent reply other threads:[~2012-09-17 11:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-17 4:27 Inderpal Singh
2012-09-17 5:47 ` Jassi Brar
2012-09-17 11:01 ` Kukjin Kim [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='050c01cd94c3$b97aaa90$2c6fffb0$%kim@samsung.com' \
--to=kgene.kim@samsung.com \
--cc=boojin.kim@samsung.com \
--cc=inderpal.singh@linaro.org \
--cc=jassisinghbrar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=patches@linaro.org \
--cc=vinod.koul@intel.com \
/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
all inboxes | Powered by JetHome®