[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_C4014DA405A96C2E1E7FEFCC050BA56D5B08@qq.com>
Date: Sat, 30 Aug 2025 15:50:00 +0800
From: Conley Lee <conleylee@...mail.com>
To: kuba@...nel.org,
davem@...emloft.net,
wens@...e.org,
mripard@...nel.org
Cc: netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Conley Lee <conleylee@...mail.com>
Subject: [PATCH 2/2] net: ethernet: sun4i-emac: enable dma rx in sun4i
The current sun4i-emac driver supports receiving data packets using DMA,
but this feature is not enabled in the device tree (dts) configuration.
This patch enables the DMA receive option in the dts file.
Signed-off-by: Conley Lee <conleylee@...mail.com>
---
arch/arm/boot/dts/allwinner/sun4i-a10.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
index 51a6464aa..b20ef5841 100644
--- a/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
+++ b/arch/arm/boot/dts/allwinner/sun4i-a10.dtsi
@@ -317,6 +317,8 @@ emac: ethernet@...b000 {
allwinner,sram = <&emac_sram 1>;
pinctrl-names = "default";
pinctrl-0 = <&emac_pins>;
+ dmas = <&dma SUN4I_DMA_DEDICATED 7>;
+ dma-names = "rx";
status = "disabled";
};
--
2.25.1
Powered by blists - more mailing lists