]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drivers: net: xilinx_emaclite: remove arch limitation
authorGary Guo <gary@garyguo.net>
Tue, 16 Feb 2021 22:33:42 +0000 (22:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 22:48:59 +0000 (14:48 -0800)
The changes made in eccd540 is enough for xilinx_emaclite to run
without problem on 64-bit systems. I have tested it on a Xilinx
FPGA with RV64 softcore. The architecture limitation in Kconfig
seems no longer necessary.

A small change is included to print address with %lx instead of
casting to int and print with %x.

Signed-off-by: Gary Guo <gary@garyguo.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/Kconfig
drivers/net/ethernet/xilinx/xilinx_emaclite.c

index 3b2137d1f4c6a66eb8c1e12331ac850f06242cb4..c6eb7f2368aa35ad638fcdb17c047b29fc4ca08d 100644 (file)
@@ -18,7 +18,6 @@ if NET_VENDOR_XILINX
 
 config XILINX_EMACLITE
        tristate "Xilinx 10/100 Ethernet Lite support"
-       depends on PPC32 || MICROBLAZE || ARCH_ZYNQ || MIPS || COMPILE_TEST
        select PHYLIB
        help
          This driver supports the 10/100 Ethernet Lite from Xilinx.
index 008b9a40faadb8b9d2063d1e3e8d5353e53ad9a4..007840d4a8073e2bb5aede5a5222c6af20821af2 100644 (file)
@@ -1193,8 +1193,8 @@ static int xemaclite_of_probe(struct platform_device *ofdev)
        }
 
        dev_info(dev,
-                "Xilinx EmacLite at 0x%08X mapped to 0x%08lX, irq=%d\n",
-                (unsigned int __force)ndev->mem_start,
+                "Xilinx EmacLite at 0x%08lX mapped to 0x%08lX, irq=%d\n",
+                (unsigned long __force)ndev->mem_start,
                 (unsigned long __force)lp->base_addr, ndev->irq);
        return 0;