Skip to contentSkip to conversation

dmaengine: dw-axi-dmac: Fix CH_CFG2_H_PRIORITY_POS shift macro

PATCH New Changhuang Liang 1 participant 1 message May 19, 2025

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

PATCH 1/1 dmaengine: dw-axi-dmac: Fix CH_CFG2_H_PRIORITY_POS shift macro

CH_PRIOR field is located in CH_CFG2 bits [51:47]. So its shift in CH_CFG2_H_ is 15. Correct it.

Fixes 824351668a41 ("dmaengine: dw-axi-dmac: support DMAX_NUM_CHANNELS > 8")
Cc Pandith N <[email protected]>
---
 drivers/dma/dw-axi-dmac/dw-axi-dmac.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dw-axi-dmac/dw-axi-dmac.h +1 -1
index b842e6a8d90d..facdfb453ffc 100644
@@ -326,7 +326,7 @@ enum {
 #define CH_CFG2_H_TT_FC_POS		0
 #define CH_CFG2_H_HS_SEL_SRC_POS	3
 #define CH_CFG2_H_HS_SEL_DST_POS	4
-#define CH_CFG2_H_PRIORITY_POS		20
+#define CH_CFG2_H_PRIORITY_POS		15
 
 /**
  * DW AXI DMA channel interrupts

--
2.25.1