Skip to contentSkip to conversation

dmaengine: hisi: Simplify preconditions of CONFIG_K3_DMA

PATCH Applied Jonathan Neuschäfer 2 participants 2 messages Sep 24, 2023 – Sep 28, 2023 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: hisi: Simplify preconditions of CONFIG_K3_DMA

Commit e39a2329cfb09 ("Kconfig: Allow k3dma driver to be selected for more then HISI3xx platforms") expanded the "depends on" line of K3_DMA from "ARCH_HI3xxx" to "ARCH_HI3xxx || ARCH_HISI || COMPILE_TEST". However, ARCH_HI3xxx implies ARCH_HISI, so it's unnecessary to list both.

Instead, just list ARCH_HISI, which covers all HiSilicon platforms.

---
 drivers/dma/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/Kconfig +1 -1
index 4ccae1a3b8842..70ba506dabab5 100644
@@ -362,7 +362,7 @@ config INTEL_IOATDMA
 
 config K3_DMA
 	tristate "Hisilicon K3 DMA support"
-	depends on ARCH_HI3xxx || ARCH_HISI || COMPILE_TEST
+	depends on ARCH_HISI || COMPILE_TEST
 	select DMA_ENGINE
 	select DMA_VIRTUAL_CHANNELS
 	help

--
2.40.1

maintainer Applied
#1 lore raw
Quoted 9 lines · Jonathan Neuschäfer

Commit e39a2329cfb09 ("Kconfig: Allow k3dma driver to be selected for more then HISI3xx platforms") expanded the "depends on" line of K3_DMA from "ARCH_HI3xxx" to "ARCH_HI3xxx || ARCH_HISI || COMPILE_TEST". However, ARCH_HI3xxx implies ARCH_HISI, so it's unnecessary to list both.

Instead, just list ARCH_HISI, which covers all HiSilicon platforms.

[...]

Applied, thanks!

[1/1] dmaengine: hisi: Simplify preconditions of CONFIG_K3_DMA

      commit: 65b87548041ad70a8e26af08c0dda0b5893baf6b

Best regards,

Signature · 1 line
~Vinod