From: <Tudor.Ambarus@microchip.com>
To: <andriy.shevchenko@linux.intel.com>, <vkoul@kernel.org>,
<Nicolas.Ferre@microchip.com>,
<linux-arm-kernel@lists.infradead.org>,
<dmaengine@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <Ludovic.Desroches@microchip.com>
Subject: Re: [PATCH v1 2/2] at_hdmac: return actual status when txstatus parameter is NULL
Date: Tue, 8 Nov 2022 11:51:20 +0000 [thread overview]
Message-ID: <7289fcc5-154f-f720-853c-31a8eb6f233c@microchip.com> (raw)
In-Reply-To: <20221108074938.48853-2-andriy.shevchenko@linux.intel.com>
On 11/8/22 09:49, Andy Shevchenko wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> There is no point to return DMA_ERROR if txstatus parameter is NULL. It's a
> valid case and should be handled correspondingly.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/dma/at_hdmac.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
> index a9d8dd990d6e..4035d5438530 100644
> --- a/drivers/dma/at_hdmac.c
> +++ b/drivers/dma/at_hdmac.c
> @@ -1679,7 +1679,7 @@ atc_tx_status(struct dma_chan *chan,
> if (!txstate) {
> if (test_bit(ATC_IS_PAUSED, &atchan->status))
> return DMA_PAUSED;
> - return DMA_ERROR;
> + return dma_status;
oh, I see you do it here, please squash this patch to the previous one,
you introduced DMA_ERROR in the previous patch.
> }
>
> spin_lock_irqsave(&atchan->vc.lock, flags);
> --
> 2.35.1
>
--
Cheers,
ta
next prev parent reply other threads:[~2022-11-08 11:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-08 7:49 [PATCH v1 1/2] at_hdmac: check and return DMA_PAUSED status when suitable Andy Shevchenko
2022-11-08 7:49 ` [PATCH v1 2/2] at_hdmac: return actual status when txstatus parameter is NULL Andy Shevchenko
2022-11-08 11:51 ` Tudor.Ambarus [this message]
2022-11-08 11:50 ` [PATCH v1 1/2] at_hdmac: check and return DMA_PAUSED status when suitable Tudor.Ambarus
2022-11-08 12:18 ` Andy Shevchenko
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=7289fcc5-154f-f720-853c-31a8eb6f233c@microchip.com \
--to=tudor.ambarus@microchip.com \
--cc=Ludovic.Desroches@microchip.com \
--cc=Nicolas.Ferre@microchip.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.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
all inboxes | Powered by JetHome®