Skip to contentSkip to conversation

] net: nixge: Add support for 64-bit ZynqMP platform

RFC/PATCH Moritz Fischer 1 participant 1 message Aug 14, 2018

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

Add support for 64-bit (ZynqMP) platform 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 all,

I'm working on making this work for X86_64, too (in fact I tested a version where I got rid of the phy/mdio code on X86_64 over PCIe) which will come as a follow up patch once I got the details worked out. in the PCIe case this will be platform_device subdevice of another device. I digress ...

For the generic case would my depends on look like

depends on HAS_MMIO && HAS_DMA ?

Am I lacking a depends on OF_MDIO?

This patch also intoduces a warning where with netdev_err() in the IRQ handlers I print the address which for the 64bit case is %llx vs %x for the 32-bit case.

I know %pad is the right format string to print dma_addr_t, but that seemed to generate a warning, too. Ideas?

Thanks for your feedback,

Moritz

---
 drivers/net/ethernet/ni/Kconfig |   2 +-
 drivers/net/ethernet/ni/nixge.c | 170 ++++++++++++++++++++++----------
 2 files changed, 117 insertions(+), 55 deletions(-)
drivers/net/ethernet/ni/Kconfig +1 -1
index aa41e5f6e437..bc6b29c7b0c1 100644
@@ -18,7 +18,7 @@ if NET_VENDOR_NI
 
 config NI_XGE_MANAGEMENT_ENET
 	tristate "National Instruments XGE management enet support"
-	depends on ARCH_ZYNQ
+	depends on ARCH_ZYNQ || ARCH_ZYNQMP
 	select PHYLIB
 	help
 	  Simple LAN device for debug or management purposes. Can
drivers/net/ethernet/ni/nixge.c +116 -54

353 lines not on this page · raw message

Signature · 1 line
2.18.0