Thread (8 messages) flat view 8 messages, 4 authors, 20d ago

Re: [PATCH 1/2] dmaengine: use dma_chan_name() helper to get per-channel device name

From: Frank Li <hidden>
Date: 2026-08-14 16:15:43
Also in: dmaengine, imx, linux-arm-kernel, linux-mips, linux-sunxi, linux-tegra, lkml

On Fri, Aug 14, 2026 at 11:03:48AM +0300, Andy Shevchenko wrote:
On Wed, Aug 12, 2026 at 05:24:08PM -0400, Frank.Li@oss.nxp.com wrote:
quoted
Use the existing dma_chan_name() helper to obtain the per-channel device
name instead of open-coding: dev_name(chan->dev->device) /
dev_name(chan2dev())

Simplify the code and improve consistency.

No functional change intended.
...
quoted
 		ret = devm_request_irq(dev, lchan->irq, loongson2_cmc_dma_chan_irq, IRQF_SHARED,
-				       dev_name(chan2dev(lchan)), lchan);
+				       dma_chan_name(&lchan->vchan.chan), lchan);
Depending on the amount of users (and I expect there is a number), I would
expect specific API for virt-dma case.
Make sense, I consider it before. Let's wait for while for patch2's comments

Frank
quoted
 		if (ret)
 			return ret;
--
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help