All of lore.kernel.org
 help / color / mirror / Atom feed
From: nuno.sa@analog.com
To: sashiko-reviews@lists.linux.dev
Cc: dmaengine@vger.kernel.org, vkoul@kernel.org, Frank.Li@kernel.org
Subject: Re: [PATCH v3 3/9] dmaengine: dw-axi-dmac: Use bus width capability helpers
Date: Mon, 31 Aug 2026 13:41:36 +0100	[thread overview]
Message-ID: <apV2bCpCub1gBSQA@nsa> (raw)
In-Reply-To: <20260831115819.F17781F000E9@smtp.kernel.org>

On Mon, Aug 31, 2026 at 11:58:19AM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Medium] Mismatch between commit message claims and actual function calls.
> --
> 
> commit d65f8f1318d2325009bb83a6877e70b0e20de0ed
> Author: Nuno Sá <nuno.sa@analog.com>
> 
> dmaengine: dw-axi-dmac: Use bus width capability helpers
> 
> This commit updates the dw-axi-dmac driver to advertise supported bus widths
> using capability helpers instead of assigning legacy u32 masks directly.
> 
> > Advertise the supported bus widths through dma_set_src_bus_widths()
> > and dma_set_dst_bus_widths() instead of assigning the legacy u32 masks
> > directly. This keeps the driver using the new bitmap representation
> > while preserving legacy fields during the transition.
> 
> [Severity: Medium]
> Is this description accurate regarding the functions being used?
> 
> The commit message explicitly states that the patch uses
> dma_set_src_bus_widths() and dma_set_dst_bus_widths(), but the actual
> implementation in dw_probe() uses dma_bus_width_set_many():
> 
> > diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
> > --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
> > +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
> [ ... ]
> > @@ -1565,8 +1566,13 @@ static int dw_probe(struct platform_device *pdev)
> >  
> >  	/* DMA capabilities */
> >  	dw->dma.max_burst = hdata->axi_rw_burst_len;
> > -	dw->dma.src_addr_widths = AXI_DMA_BUSWIDTHS;
> > -	dw->dma.dst_addr_widths = AXI_DMA_BUSWIDTHS;
> > +	ret = dma_bus_width_set_many(dw->dma.src_bus_widths, buswidths, ARRAY_SIZE(buswidths));
> > +	if (ret)
> > +		return ret;
> > +
> > +	ret = dma_bus_width_set_many(dw->dma.dst_bus_widths, buswidths, ARRAY_SIZE(buswidths));
> 
> Could the commit message be updated to match the API that is actually called
> in the driver?

Yes! It should!

> -- 
> Sashiko AI review · https://sashiko.dev/#/patchset/20260831-dmaengine-support-wider-dma-masks-v3-0-507d97496f2d@analog.com?part=3

  reply	other threads:[~2026-08-31 12:40 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31 11:46 [PATCH v3 0/9] dmaengine: Support bus widths of 32 bytes and above Nuno Sá
2026-08-31 11:46 ` [PATCH v3 1/9] " Nuno Sá
2026-08-31 13:45   ` Andy Shevchenko
2026-08-31 15:56     ` Nuno Sá
2026-09-01  7:18       ` Andy Shevchenko
2026-09-11 15:14       ` Nuno Sá
2026-09-11 16:06         ` Andy Shevchenko
2026-09-11 16:59           ` Nuno Sá
2026-08-31 11:46 ` [PATCH v3 2/9] dmaengine: dma-axi-dmac: Use bus width capability helpers Nuno Sá
2026-08-31 12:01   ` sashiko-bot
2026-08-31 12:27     ` nuno.sa
2026-08-31 11:46 ` [PATCH v3 3/9] dmaengine: dw-axi-dmac: " Nuno Sá
2026-08-31 11:58   ` sashiko-bot
2026-08-31 12:41     ` nuno.sa [this message]
2026-08-31 11:46 ` [PATCH v3 4/9] dmaengine: qcom: gpi: " Nuno Sá
2026-08-31 11:59   ` sashiko-bot
2026-08-31 11:46 ` [PATCH v3 5/9] dmaengine: stm32-dma3: " Nuno Sá
2026-08-31 14:01   ` Amelie Delaunay
2026-09-01  8:25     ` Nuno Sá
2026-08-31 11:46 ` [PATCH v3 6/9] iio: buffer-dmaengine: Use dma_slave_caps bus width accessors Nuno Sá
2026-08-31 11:46 ` [PATCH v3 7/9] ALSA: pcm_dmaengine: Use dma_slave_caps bus width helpers Nuno Sá
2026-08-31 11:46 ` [PATCH v3 8/9] spi: dw: " Nuno Sá
2026-08-31 12:08   ` sashiko-bot
2026-08-31 12:12   ` Mark Brown
2026-08-31 13:47   ` Andy Shevchenko
2026-08-31 11:46 ` [PATCH v3 9/9] dmaengine: Drop legacy bus width fields from dma_slave_caps Nuno Sá
2026-08-31 13:49   ` Andy Shevchenko
2026-08-31 13:50 ` [PATCH v3 0/9] dmaengine: Support bus widths of 32 bytes and above Andy Shevchenko
2026-08-31 15:51   ` Nuno Sá

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=apV2bCpCub1gBSQA@nsa \
    --to=nuno.sa@analog.com \
    --cc=Frank.Li@kernel.org \
    --cc=dmaengine@vger.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.