public inbox for dmaengine@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups
@ 2026-02-01  0:04 Khairul Anuar Romli
  2026-02-01  0:04 ` [PATCH v6 1/3] dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis Khairul Anuar Romli
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Khairul Anuar Romli @ 2026-02-01  0:04 UTC (permalink / raw)
  To: Eugeniy Paltsev, Vinod Koul, dmaengine, linux-kernel,
	Markus.Elfring, Khairul Anuar Romli

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=Y, Size: 1579 bytes --]

This series contains a single patch that fixes minor coding style issues in
the Synopsys DesignWare AXI DMA Controller platform driver. This adjustment
possibilities were detected with the help of the analysis tool
“checkpatch.pl".

The changes are purely cosmetic:
- Adjust indentation of function arguments and debug messages
- Remove an unnecessary `return;` statement
- Add a blank line for readability between functions

These updates improve code readability and maintain consistency with
kernel coding style guidelines. No functional changes are introduced.

---
Notes:
This patch series is applied on dmaengine maintainer's tree
https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git/log/?h=next

Changes in v6:
	- Refine commit message on the patches.
Changes in v5:
	- Refine the commit message of each patch to mention the use of
          checkpatch.pl analysis tool for the fix.
Changes in v4:
	- Improve the description on every patch.
	- Mentioned the commit the patches addressed.
Changes in v3:
	- Split into smaller patches based on warning type
Changes in v2:
	- Rebase on top of newer merge commit
v1:
https://lore.kernel.org/all/20260104093529.40913-1-karom.9560@gmail.com/
---
Khairul Anuar Romli (3):
  dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis
  dmaengine: dw-axi-dmac: Add blank line after function
  dmaengine: dw-axi-dmac: Remove not useful void return function
    statements

 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [PATCH v6 1/3] dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis
  2026-02-01  0:04 [PATCH v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Khairul Anuar Romli
@ 2026-02-01  0:04 ` Khairul Anuar Romli
  2026-02-01  8:34   ` Markus Elfring
  2026-02-01  0:04 ` [PATCH v6 2/3] dmaengine: dw-axi-dmac: Add blank line after function Khairul Anuar Romli
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 10+ messages in thread
From: Khairul Anuar Romli @ 2026-02-01  0:04 UTC (permalink / raw)
  To: Eugeniy Paltsev, Vinod Koul, dmaengine, linux-kernel,
	Markus.Elfring, Khairul Anuar Romli

Correct alignment issue so that continuation lines properly match the
position of the opening parenthesis.

The fix applies to code introduced in:
- 'commit 1fe20f1b8454 ("dmaengine: Introduce DW AXI DMAC driver")'
- 'commit e32634f466a9 ("dma: dw-axi-dmac: support per channel
   interrupt")'

This Alignment should match open parenthesis issue were detected with the
help of the checkpatch.pl analysis tool with --strict --file option.

Signed-off-by: Khairul Anuar Romli <karom.9560@gmail.com>
---
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index 493c2a32b0fe..8bb97fb8fd4c 100644
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
@@ -342,8 +342,8 @@ static void axi_desc_put(struct axi_dma_desc *desc)
 	kfree(desc);
 	atomic_sub(descs_put, &chan->descs_allocated);
 	dev_vdbg(chan2dev(chan), "%s: %d descs put, %d still allocated\n",
-		axi_chan_name(chan), descs_put,
-		atomic_read(&chan->descs_allocated));
+		 axi_chan_name(chan), descs_put,
+		 atomic_read(&chan->descs_allocated));
 }
 
 static void vchan_desc_put(struct virt_dma_desc *vdesc)
@@ -353,7 +353,7 @@ static void vchan_desc_put(struct virt_dma_desc *vdesc)
 
 static enum dma_status
 dma_chan_tx_status(struct dma_chan *dchan, dma_cookie_t cookie,
-		  struct dma_tx_state *txstate)
+		   struct dma_tx_state *txstate)
 {
 	struct axi_dma_chan *chan = dchan_to_axi_dma_chan(dchan);
 	struct virt_dma_desc *vdesc;
@@ -491,7 +491,7 @@ static void axi_chan_start_first_queued(struct axi_dma_chan *chan)
 
 	desc = vd_to_axi_desc(vd);
 	dev_vdbg(chan2dev(chan), "%s: started %u\n", axi_chan_name(chan),
-		vd->tx.cookie);
+		 vd->tx.cookie);
 	axi_chan_block_xfer_start(chan, desc);
 }
 
@@ -1162,7 +1162,7 @@ static irqreturn_t dw_axi_dma_interrupt(int irq, void *dev_id)
 		axi_chan_irq_clear(chan, status);
 
 		dev_vdbg(chip->dev, "%s %u IRQ status: 0x%08x\n",
-			axi_chan_name(chan), i, status);
+			 axi_chan_name(chan), i, status);
 
 		if (status & DWAXIDMAC_IRQ_ALL_ERR)
 			axi_chan_handle_err(chan, status);
@@ -1451,7 +1451,7 @@ static int axi_req_irqs(struct platform_device *pdev, struct axi_dma_chip *chip)
 		if (chip->irq[i] < 0)
 			return chip->irq[i];
 		ret = devm_request_irq(chip->dev, chip->irq[i], dw_axi_dma_interrupt,
-				IRQF_SHARED, KBUILD_MODNAME, chip);
+				       IRQF_SHARED, KBUILD_MODNAME, chip);
 		if (ret < 0)
 			return ret;
 	}
@@ -1645,7 +1645,7 @@ static void dw_remove(struct platform_device *pdev)
 	of_dma_controller_free(chip->dev->of_node);
 
 	list_for_each_entry_safe(chan, _chan, &dw->dma.channels,
-			vc.chan.device_node) {
+				 vc.chan.device_node) {
 		list_del(&chan->vc.chan.device_node);
 		tasklet_kill(&chan->vc.task);
 	}
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v6 2/3] dmaengine: dw-axi-dmac: Add blank line after function
  2026-02-01  0:04 [PATCH v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Khairul Anuar Romli
  2026-02-01  0:04 ` [PATCH v6 1/3] dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis Khairul Anuar Romli
@ 2026-02-01  0:04 ` Khairul Anuar Romli
  2026-02-01  8:44   ` Markus Elfring
  2026-02-01  0:04 ` [PATCH v6 3/3] dmaengine: dw-axi-dmac: Remove not useful void return function statements Khairul Anuar Romli
  2026-02-01  9:57 ` [v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Markus Elfring
  3 siblings, 1 reply; 10+ messages in thread
From: Khairul Anuar Romli @ 2026-02-01  0:04 UTC (permalink / raw)
  To: Eugeniy Paltsev, Vinod Koul, dmaengine, linux-kernel,
	Markus.Elfring, Khairul Anuar Romli

Resolved checkpatch.pl --strict warning by inserting a blank line after
declaration.

Signed-off-by: Khairul Anuar Romli <karom.9560@gmail.com>
---
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index 8bb97fb8fd4c..e59725376f8e 100644
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
@@ -419,6 +419,7 @@ static void dw_axi_dma_set_byte_halfword(struct axi_dma_chan *chan, bool set)
 
 	iowrite32(val, chan->chip->apb_regs + offset);
 }
+
 /* Called in chan locked context */
 static void axi_chan_block_xfer_start(struct axi_dma_chan *chan,
 				      struct axi_dma_desc *first)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [PATCH v6 3/3] dmaengine: dw-axi-dmac: Remove not useful void return function statements
  2026-02-01  0:04 [PATCH v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Khairul Anuar Romli
  2026-02-01  0:04 ` [PATCH v6 1/3] dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis Khairul Anuar Romli
  2026-02-01  0:04 ` [PATCH v6 2/3] dmaengine: dw-axi-dmac: Add blank line after function Khairul Anuar Romli
@ 2026-02-01  0:04 ` Khairul Anuar Romli
  2026-02-01  8:51   ` Markus Elfring
  2026-02-01  9:57 ` [v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Markus Elfring
  3 siblings, 1 reply; 10+ messages in thread
From: Khairul Anuar Romli @ 2026-02-01  0:04 UTC (permalink / raw)
  To: Eugeniy Paltsev, Vinod Koul, dmaengine, linux-kernel,
	Markus.Elfring, Khairul Anuar Romli

The dw_axi_dma_set_hw_channel() function is declared as void, so an
explicit `return;` at the end is unnecessary. Control flow naturally
returns to the caller once the function ends. Removing it cleans up the
code and aligns with kernel style guidelines without changing
functionality.

This fix resolves a coding style issue introduced by
- 'commit 32286e279385 ("dmaengine: dw-axi-dmac: Remove free slot check
   algorithm in dw_axi_dma_set_hw_channel")'.

This unnecessary return were detected with the help of the checkpatch.pl
analysis tool with --strict --file option.

Signed-off-by: Khairul Anuar Romli <karom.9560@gmail.com>
---
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
index e59725376f8e..c124ac6c8df6 100644
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
@@ -593,8 +593,6 @@ static void dw_axi_dma_set_hw_channel(struct axi_dma_chan *chan, bool set)
 			(chan->id * DMA_APB_HS_SEL_BIT_SIZE));
 	reg_value |= (val << (chan->id * DMA_APB_HS_SEL_BIT_SIZE));
 	lo_hi_writeq(reg_value, chip->apb_regs + DMAC_APB_HW_HS_SEL_0);
-
-	return;
 }
 
 /*
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 1/3] dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis
  2026-02-01  0:04 ` [PATCH v6 1/3] dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis Khairul Anuar Romli
@ 2026-02-01  8:34   ` Markus Elfring
  0 siblings, 0 replies; 10+ messages in thread
From: Markus Elfring @ 2026-02-01  8:34 UTC (permalink / raw)
  To: Khairul Anuar Romli, dmaengine, Eugeniy Paltsev, Vinod Koul; +Cc: LKML> - 'commit e32634f466a9 ("dma: dw-axi-dmac: support per channel
>    interrupt")'

* Would the mentioned commit summary be nicer without an extra line break here?

* How do you think about to omit single quotes for such information?


…
> This Alignment should match open parenthesis issue were detected with the

  This issue was?


> help of the checkpatch.pl analysis tool with --strict --file option.

I see still further possibilities to refine also the summary phrase.


Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 2/3] dmaengine: dw-axi-dmac: Add blank line after function
  2026-02-01  0:04 ` [PATCH v6 2/3] dmaengine: dw-axi-dmac: Add blank line after function Khairul Anuar Romli
@ 2026-02-01  8:44   ` Markus Elfring
  0 siblings, 0 replies; 10+ messages in thread
From: Markus Elfring @ 2026-02-01  8:44 UTC (permalink / raw)
  To: Khairul Anuar Romli, dmaengine, Eugeniy Paltsev, Vinod Koul; +Cc: LKML

> Resolved checkpatch.pl --strict warning by inserting a blank line after
> declaration.

See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.19-rc7#n94

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 3/3] dmaengine: dw-axi-dmac: Remove not useful void return function statements
  2026-02-01  0:04 ` [PATCH v6 3/3] dmaengine: dw-axi-dmac: Remove not useful void return function statements Khairul Anuar Romli
@ 2026-02-01  8:51   ` Markus Elfring
  2026-02-02  4:57     ` Khairul Anuar Romli
  0 siblings, 1 reply; 10+ messages in thread
From: Markus Elfring @ 2026-02-01  8:51 UTC (permalink / raw)
  To: Khairul Anuar Romli, dmaengine, Eugeniy Paltsev, Vinod Koul; +Cc: LKML> This fix resolves a coding style issue introduced by
…

See also once more:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.19-rc7#n94


> This unnecessary return were detected with …

                          was?

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups
  2026-02-01  0:04 [PATCH v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Khairul Anuar Romli
                   ` (2 preceding siblings ...)
  2026-02-01  0:04 ` [PATCH v6 3/3] dmaengine: dw-axi-dmac: Remove not useful void return function statements Khairul Anuar Romli
@ 2026-02-01  9:57 ` Markus Elfring
  2026-02-02  4:38   ` Khairul Anuar Romli
  3 siblings, 1 reply; 10+ messages in thread
From: Markus Elfring @ 2026-02-01  9:57 UTC (permalink / raw)
  To: Khairul Anuar Romli, dmaengine, Eugeniy Paltsev, Vinod Koul; +Cc: LKML

> This series contains a single patch that …

Please correct such information.

Regards,
Markus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups
  2026-02-01  9:57 ` [v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Markus Elfring
@ 2026-02-02  4:38   ` Khairul Anuar Romli
  0 siblings, 0 replies; 10+ messages in thread
From: Khairul Anuar Romli @ 2026-02-02  4:38 UTC (permalink / raw)
  To: Markus Elfring, dmaengine, Eugeniy Paltsev, Vinod Koul; +Cc: LKML

On 1/2/2026 5:57 pm, Markus Elfring wrote:
>> This series contains a single patch that …
> 
> Please correct such information.
> 
> Regards,
> Markus

Ops, I will correct this.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH v6 3/3] dmaengine: dw-axi-dmac: Remove not useful void return function statements
  2026-02-01  8:51   ` Markus Elfring
@ 2026-02-02  4:57     ` Khairul Anuar Romli
  0 siblings, 0 replies; 10+ messages in thread
From: Khairul Anuar Romli @ 2026-02-02  4:57 UTC (permalink / raw)
  To: Markus Elfring, dmaengine, Eugeniy Paltsev, Vinod Koul; +Cc: LKML

On 1/2/2026 4:51 pm, Markus Elfring wrote:
> …
>> This fix resolves a coding style issue introduced by
> …
> 
> See also once more:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.19-rc7#n94
> 
> 

Will rephrase and use the

Fixes:
Sign-of-by:

>> This unnecessary return were detected with …
> 
>                            was?
> 

Will correct this.

> Regards,
> Markus

Thanks.

Regards,
Khairul

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-02-02  4:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-01  0:04 [PATCH v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Khairul Anuar Romli
2026-02-01  0:04 ` [PATCH v6 1/3] dmaengine: dw-axi-dmac: fix Alignment should match open parenthesis Khairul Anuar Romli
2026-02-01  8:34   ` Markus Elfring
2026-02-01  0:04 ` [PATCH v6 2/3] dmaengine: dw-axi-dmac: Add blank line after function Khairul Anuar Romli
2026-02-01  8:44   ` Markus Elfring
2026-02-01  0:04 ` [PATCH v6 3/3] dmaengine: dw-axi-dmac: Remove not useful void return function statements Khairul Anuar Romli
2026-02-01  8:51   ` Markus Elfring
2026-02-02  4:57     ` Khairul Anuar Romli
2026-02-01  9:57 ` [v6 0/3] dmaengine: dw-axi-dmac: Coding style cleanups Markus Elfring
2026-02-02  4:38   ` Khairul Anuar Romli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox