From: sashiko-bot@kernel.org
To: Frank.Li@oss.nxp.com
Cc: imx@lists.linux.dev, Frank.Li@kernel.org, ntb@lists.linux.dev
Subject: Re: [PATCH 1/1] ntb: use dmaengine_get_dma_device() instead of chan->device->dev
Date: Fri, 18 Sep 2026 20:53:23 +0000 [thread overview]
Message-ID: <20260918205324.3CC7D1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260918204152.2364336-1-Frank.Li@oss.nxp.com>
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Medium] ntb: missed replacing chan->device->dev in perf_dma_filter()
- [Low] ntb: commit message incorrectly mentions IIO instead of NTB
--
commit 00ad86ab4ff3c677b79412d332638c7a5186dbbe
Author: Frank Li <Frank.Li@nxp.com>
ntb: use dmaengine_get_dma_device() instead of chan->device->dev
This commit replaces direct chan->device->dev access with the proper
dmaengine_get_dma_device() accessor in NTB DMA consumers. It prepares
for making the DMA engine provider data structures private.
> Replace direct dma_chan::device::dev access with the proper
> dmaengine_get_dma_device() accessor in IIO DMA consumers.
[Severity: Low]
This isn't a bug, but the commit message incorrectly mentions IIO DMA
consumers instead of NTB DMA consumers.
> diff --git a/drivers/ntb/test/ntb_perf.c b/drivers/ntb/test/ntb_perf.c
> index dfd175f79e8f0..b936f15079df2 100644
> --- a/drivers/ntb/test/ntb_perf.c
> +++ b/drivers/ntb/test/ntb_perf.c
[ ... ]
> @@ -869,6 +869,7 @@ static bool perf_dma_filter(struct dma_chan *chan, void *data)
> static int perf_init_test(struct perf_thread *pthr)
> {
> struct perf_ctx *perf = pthr->perf;
> + struct device *dma_dev;
[Severity: Medium]
Does this patch miss a replacement in perf_dma_filter()?
Right above this hunk, perf_dma_filter() still accesses chan->device->dev
directly:
drivers/ntb/test/ntb_perf.c:perf_dma_filter() {
...
return node == NUMA_NO_NODE || node == dev_to_node(chan->device->dev);
}
Since the goal is to prepare for making DMA engine structures private by
abstracting chan->device->dev behind dmaengine_get_dma_device(chan), will
leaving this direct access cause a build failure once the structure is made
private?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260918204152.2364336-1-Frank.Li@oss.nxp.com?part=1
next prev parent reply other threads:[~2026-09-18 20:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-18 20:41 [PATCH 1/1] ntb: use dmaengine_get_dma_device() instead of chan->device->dev Frank.Li
2026-09-18 20:53 ` sashiko-bot [this message]
2026-09-18 21:06 ` Frank Li
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=20260918205324.3CC7D1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=Frank.Li@kernel.org \
--cc=Frank.Li@oss.nxp.com \
--cc=imx@lists.linux.dev \
--cc=ntb@lists.linux.dev \
--cc=sashiko-reviews@lists.linux.dev \
/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