linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] net: ethernet: sun4i-emac: enable dma rx in sun4i
@ 2025-08-30  7:50 Conley Lee
  2025-08-30 14:45 ` Andrew Lunn
  2025-09-02 13:18 ` Rob Herring (Arm)
  0 siblings, 2 replies; 3+ messages in thread
From: Conley Lee @ 2025-08-30  7:50 UTC (permalink / raw)
  To: kuba, davem, wens, mripard
  Cc: netdev, linux-arm-kernel, linux-kernel, Conley Lee

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@foxmail.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@1c0b000 {
 			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



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

end of thread, other threads:[~2025-09-02 13:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-30  7:50 [PATCH 2/2] net: ethernet: sun4i-emac: enable dma rx in sun4i Conley Lee
2025-08-30 14:45 ` Andrew Lunn
2025-09-02 13:18 ` Rob Herring (Arm)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).