Skip to contentSkip to conversation

net: nixge: Add support for 64-bit platforms

PATCH Applied Moritz Fischer 2 participants 2 messages Aug 28, 2018 – Aug 30, 2018

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

PATCH 1/1 net: nixge: Add support for 64-bit platforms

Add support for 64-bit platforms to driver.

The hardware only supports 32-bit register accesses so the accesses need to be split up into two writes when setting the current and tail descriptor values.

Cc Florian Fainelli <[email protected]>

---
Hi Dave,

I'll submit the other changes for fixed_phy / non MDIO support as a separate series since I'm ironing out some issues on ARM with devicetree overlays.

Thanks,
Moritz

---
 drivers/net/ethernet/ni/Kconfig |   3 +-
 drivers/net/ethernet/ni/nixge.c | 168 ++++++++++++++++++++++----------
 2 files changed, 116 insertions(+), 55 deletions(-)
drivers/net/ethernet/ni/Kconfig +2 -1
index aa41e5f6e437..04e315704f71 100644
@@ -18,8 +18,9 @@ if NET_VENDOR_NI
 
 config NI_XGE_MANAGEMENT_ENET
 	tristate "National Instruments XGE management enet support"
-	depends on ARCH_ZYNQ
+	depends on HAS_IOMEM && HAS_DMA
 	select PHYLIB
+	select OF_MDIO
 	help
 	  Simple LAN device for debug or management purposes. Can
 	  support either 10G or 1G PHYs via SFP+ ports.
drivers/net/ethernet/ni/nixge.c +114 -54

351 lines not on this page · raw message

Signature · 1 line
2.18.0
maintainer Applied
#1 lore raw

From: Moritz Fischer <[email protected]>
Date: Tue, 28 Aug 2018 15:16:31 -0700

Quoted 7 lines

Add support for 64-bit platforms to driver.

The hardware only supports 32-bit register accesses so the accesses need to be split up into two writes when setting the current and tail descriptor values.

Applied, thanks.