All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Golla Nagendra" <nagendra.golla@amd.com>
Cc: dmaengine@vger.kernel.org, devicetree@vger.kernel.org,
	robh@kernel.org, conor+dt@kernel.org, vkoul@kernel.org,
	Frank.Li@kernel.org
Subject: Re: [PATCH v7 3/3] dmaengine: zynqmp_dma: Add per-channel reset support
Date: Thu, 03 Dec 2026 07:51:16 +0000	[thread overview]
Message-ID: <sashiko-outbox-247327@kernel.org> (raw)
In-Reply-To: <20261203-v7_reser_series_adma-v7-3-ed9378a63f70@amd.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] dmaengine: zynqmp_dma: nested dev_err_probe() overwrites defer
  reason
--

commit 1a4217dafbfe97561a54a4f3ec9e30adeeeb57a1
Author: Golla Nagendra <nagendra.golla@amd.com>

dmaengine: zynqmp_dma: Add per-channel reset support

This commit triggers an optional per-channel reset pulse via
device_reset_optional() during zynqmp_dma_chan_probe().

> diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
> index 3b7dfa53f9725..07c3d3d545363 100644
> --- a/drivers/dma/xilinx/zynqmp_dma.c
> +++ b/drivers/dma/xilinx/zynqmp_dma.c

[ ... ]

> @@ -930,6 +931,11 @@ static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev,
>  	if (IS_ERR(chan->regs))
>  		return PTR_ERR(chan->regs);
>  
> +	err = device_reset_optional(&pdev->dev);
> +	if (err)
> +		return dev_err_probe(&pdev->dev, err,
> +					     "failed to reset channel\n");

[Severity: Low]
Does this dev_err_probe() call get overwritten by zynqmp_dma_probe()?

zynqmp_dma_probe() unconditionally calls dev_err_probe(&pdev->dev, ret,
"Probing channel failed\n") when zynqmp_dma_chan_probe() fails.

On -EPROBE_DEFER, that second call replaces the deferred probe reason, so
"failed to reset channel" is discarded.  On other non-ENOMEM errors, both
calls emit a dev_err() message for the same failure.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-v7_reser_series_adma-v7-0-ed9378a63f70@amd.com?part=3

      reply	other threads:[~2026-12-03  7:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03  7:39 [PATCH v7 0/3] dmaengine: zynqmp_dma: Add reset support for Versal Gen2 and Versal Net Golla Nagendra
2026-12-03  7:39 ` [PATCH v7 1/3] dt-bindings: dma: xlnx,zynqmp-dma: Require resets for Versal Gen2 Golla Nagendra
2026-12-03  7:39 ` [PATCH v7 2/3] dt-bindings: dma: xlnx,zynqmp-dma: Add Versal Net compatible Golla Nagendra
2026-12-03  7:39 ` [PATCH v7 3/3] dmaengine: zynqmp_dma: Add per-channel reset support Golla Nagendra
2026-12-03  7:51   ` sashiko-bot [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=sashiko-outbox-247327@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=nagendra.golla@amd.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.