Skip to contentSkip to conversation

dmaengine: dw-axi-dmac: demote apb_regs warning to debug

PATCH Superseded Baineng Shou 2 participants 3 messages Sep 18 – Oct 13

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: dw-axi-dmac: demote apb_regs warning to debug

dw_axi_dma_set_hw_channel() logs "apb_regs not initialized" at err level when apb_regs is absent. However, only Intel KeemBay ("intel,kmb-axi-dma") carries apb_regs; all other supported SoCs (snps,axi-dma-1.01a, sophgo,cv1800b, starfive,jh7110/jh8100) operate without it. For those, reaching this path during slave/cyclic prep and terminate is the normal no-op case, not an error, and the err log spams dmesg on every transfer.

Demote it to dev_dbg to match the identical check in dw_axi_dma_set_byte_halfword().

---
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +1 -1
index bcefaff03b5c..d829b9af5491 100644
@@ -574,7 +574,7 @@ static void dw_axi_dma_set_hw_channel(struct axi_dma_chan *chan, bool set)
 	unsigned long reg_value, val;
 
 	if (!chip->apb_regs) {
-		dev_err(chip->dev, "apb_regs not initialized\n");
+		dev_dbg(chip->dev, "apb_regs not initialized\n");
 		return;
 	}
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Baineng Shou

dw_axi_dma_set_hw_channel() logs "apb_regs not initialized" at err level when apb_regs is absent. However, only Intel KeemBay ("intel,kmb-axi-dma") carries apb_regs; all other supported SoCs (snps,axi-dma-1.01a, sophgo,cv1800b, starfive,jh7110/jh8100) operate without it. For those, reaching this path during slave/cyclic prep and terminate is the normal no-op case, not an error, and the err log spams dmesg on every transfer.

Quoted 5 lines

Demote it to dev_dbg to match the identical check in dw_axi_dma_set_byte_halfword().

---

Quoted 19 lines
 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +1 -2
index bcefaff03b5c..d829b9af5491 100644
@@ -574,7 +574,7 @@ static void dw_axi_dma_set_hw_channel(struct axi_dma_chan *chan, bool set)
 	unsigned long reg_value, val;
 
 	if (!chip->apb_regs) {
-		dev_err(chip->dev, "apb_regs not initialized\n");
+		dev_dbg(chip->dev, "apb_regs not initialized\n");
 		return;
 	}
 
--

2.34.1

#2 lore raw

PATCH v2 1/1 dmaengine: dw-axi-dmac: demote apb_regs warning to debug

In reply to Baineng Shou

dw_axi_dma_set_hw_channel() logs "apb_regs not initialized" at err level when apb_regs is absent. However, only Intel KeemBay ("intel,kmb-axi-dma") carries apb_regs; all other supported SoCs (snps,axi-dma-1.01a, sophgo,cv1800b, starfive,jh7110/jh8100) operate without it. For those, reaching this path during slave/cyclic prep and terminate is the normal no-op case, not an error, and the err log spams dmesg on every transfer.

Demote it to dev_dbg to match the identical check in dw_axi_dma_set_byte_halfword().

---

Changes in v2:
- Collect Reviewed-by from Frank Li. No functional changes.

 drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +1 -1
index bcefaff03b5c..d829b9af5491 100644
@@ -574,7 +574,7 @@ static void dw_axi_dma_set_hw_channel(struct axi_dma_chan *chan, bool set)
 	unsigned long reg_value, val;
 
 	if (!chip->apb_regs) {
-		dev_err(chip->dev, "apb_regs not initialized\n");
+		dev_dbg(chip->dev, "apb_regs not initialized\n");
 		return;
 	}
 
Signature · 1 line
2.34.1