net: remove netx ethernet driver
PATCH 1/3 net: remove netx ethernet driver
The ARM netx platform got removed in 5.3, so this driver is now useless.
--- drivers/net/ethernet/Kconfig | 11 - drivers/net/ethernet/Makefile | 1 - drivers/net/ethernet/netx-eth.c | 497 ------------------------- include/linux/platform_data/eth-netx.h | 13 - 4 files changed, 522 deletions(-) delete mode 100644 drivers/net/ethernet/netx-eth.c delete mode 100644 include/linux/platform_data/eth-netx.h
drivers/net/ethernet/Kconfig +0 -11
@@ -140,17 +140,6 @@ source "drivers/net/ethernet/neterion/Kconfig" source "drivers/net/ethernet/netronome/Kconfig" source "drivers/net/ethernet/ni/Kconfig" source "drivers/net/ethernet/8390/Kconfig" - -config NET_NETX - tristate "NetX Ethernet support" - select MII - depends on ARCH_NETX - ---help--- - This is support for the Hilscher netX builtin Ethernet ports - - To compile this driver as a module, choose M here. The module - will be called netx-eth. - source "drivers/net/ethernet/nuvoton/Kconfig" source "drivers/net/ethernet/nvidia/Kconfig" source "drivers/net/ethernet/nxp/Kconfig"
drivers/net/ethernet/Makefile +0 -1
@@ -64,7 +64,6 @@ obj-$(CONFIG_NET_VENDOR_NATSEMI) += natsemi/ obj-$(CONFIG_NET_VENDOR_NETERION) += neterion/ obj-$(CONFIG_NET_VENDOR_NETRONOME) += netronome/ obj-$(CONFIG_NET_VENDOR_NI) += ni/ -obj-$(CONFIG_NET_NETX) += netx-eth.o obj-$(CONFIG_NET_VENDOR_NUVOTON) += nuvoton/ obj-$(CONFIG_NET_VENDOR_NVIDIA) += nvidia/ obj-$(CONFIG_LPC_ENET) += nxp/
drivers/net/ethernet/netx-eth.c deleted +0 -497
497 lines not on this page · raw message
include/linux/platform_data/eth-netx.h deleted +0 -13
@@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* -* Copyright (c) 2005 Sascha Hauer <[email protected]>, Pengutronix -*/ - -#ifndef __ETH_NETX_H -#define __ETH_NETX_H - -struct netxeth_platform_data { -unsigned int xcno;/* number of xmac/xpec engine this eth uses */ -}; - -#endif
Signature · 1 line
2.20.0
PATCH 2/3 serial: remove netx serial driver
The netx platform got removed, so this driver is now useless.
--- drivers/tty/serial/Kconfig | 19 - drivers/tty/serial/Makefile | 1 - drivers/tty/serial/netx-serial.c | 733 ------------------------------- include/uapi/linux/serial_core.h | 2 +- 4 files changed, 1 insertion(+), 754 deletions(-) delete mode 100644 drivers/tty/serial/netx-serial.c
drivers/tty/serial/Kconfig +0 -19
@@ -1035,25 +1035,6 @@ config SERIAL_VT8500_CONSOLE depends on SERIAL_VT8500=y select SERIAL_CORE_CONSOLE -config SERIAL_NETX - tristate "NetX serial port support" - depends on ARCH_NETX - select SERIAL_CORE - help - If you have a machine based on a Hilscher NetX SoC you - can enable its onboard serial port by enabling this option. - - To compile this driver as a module, choose M here: the - module will be called netx-serial. - -config SERIAL_NETX_CONSOLE - bool "Console on NetX serial port" - depends on SERIAL_NETX=y - select SERIAL_CORE_CONSOLE - help - If you have enabled the serial port on the Hilscher NetX SoC - you can make it the console by answering Y to this option. - config SERIAL_OMAP tristate "OMAP serial port support" depends on ARCH_OMAP2PLUS
drivers/tty/serial/Makefile +0 -1
@@ -59,7 +59,6 @@ obj-$(CONFIG_SERIAL_ATMEL) += atmel_serial.o obj-$(CONFIG_SERIAL_UARTLITE) += uartlite.o obj-$(CONFIG_SERIAL_MSM) += msm_serial.o obj-$(CONFIG_SERIAL_QCOM_GENI) += qcom_geni_serial.o -obj-$(CONFIG_SERIAL_NETX) += netx-serial.o obj-$(CONFIG_SERIAL_KS8695) += serial_ks8695.o obj-$(CONFIG_SERIAL_OMAP) += omap-serial.o obj-$(CONFIG_SERIAL_ALTERA_UART) += altera_uart.o
drivers/tty/serial/netx-serial.c deleted +0 -733
733 lines not on this page · raw message
include/uapi/linux/serial_core.h +1 -1
@@ -150,7 +150,7 @@#define PORT_PNX8XXX 70 -/* Hilscher netx */ +/* Hilscher netx (removed) */ #define PORT_NETX 71/* SUN4V Hypervisor Console */
Signature · 1 line
2.20.0
Re: [PATCH 2/3] serial: remove netx serial driver
Quoted 4 lines · Arnd Bergmann
The netx platform got removed, so this driver is now useless.
Signed-off-by Arnd Bergmann <[email protected]>
We seem so overlap :)
https://marc.info/?l=linux-serial&m=156377843325488&w=2
Anyways, the patches are identical except here:
include/uapi/linux/serial_core.h line 154
Quoted 3 lines
include/uapi/linux/serial_core.h +1
-1-/* Hilscher netx */ +/* Hilscher netx (removed) */ #define PORT_NETX 71
Is there some reason for keeping the magical number around? When I looked over the file there seemed to be more "holes" in the list.
Yours,
Linus Walleij
Re: [PATCH 2/3] serial: remove netx serial driver
Quoted 13 lines · Linus Walleij
Quoted 4 lines · Arnd Bergmann
The netx platform got removed, so this driver is now useless.
Signed-off-by Arnd Bergmann <[email protected]>We seem so overlap :)
https://marc.info/?l=linux-serial&m=156377843325488&w=2Anyways, the patches are identical except here:
Quoted 7 lines
include/uapi/linux/serial_core.h line 154
Quoted 3 lines
include/uapi/linux/serial_core.h +1
-1-/* Hilscher netx */ +/* Hilscher netx (removed) */ #define PORT_NETX 71Is there some reason for keeping the magical number around? When I looked over the file there seemed to be more "holes" in the list.
I looked at the same list and though I saw more obsolete entries than holes. The last ones that I saw getting removed were PORT_MFD in 2017 and PORT_V850E_UART in 2008.
It probably doesn't matter as we have precedence for both.
Arnd
Greg Kroah-Hartman
maintainerRe: [PATCH 2/3] serial: remove netx serial driver
Quoted 22 lines · Arnd Bergmann
Quoted 13 lines · Linus Walleij
Quoted 4 lines · Arnd Bergmann
The netx platform got removed, so this driver is now useless.
Signed-off-by Arnd Bergmann <[email protected]>We seem so overlap :)
https://marc.info/?l=linux-serial&m=156377843325488&w=2Anyways, the patches are identical except here:
Quoted 7 lines
include/uapi/linux/serial_core.h line 154
Quoted 3 lines
include/uapi/linux/serial_core.h +1
-1-/* Hilscher netx */ +/* Hilscher netx (removed) */ #define PORT_NETX 71Is there some reason for keeping the magical number around? When I looked over the file there seemed to be more "holes" in the list.
Quoted 5 lines
I looked at the same list and though I saw more obsolete entries than holes. The last ones that I saw getting removed were
PORT_MFDin 2017 andPORT_V850E_UARTin 2008.It probably doesn't matter as we have precedence for both.
I want to just get rid of that whole list as I don't think it's ever needed, but haven't spent the time digging through userspace code to verify it.
I'll take Linus's patch as it came first, thanks.
greg k-h
PATCH 3/3 uio: remove netx driver
In reply to Arnd BergmannThe netx platform got removed, so this driver is now useless.
--- drivers/uio/Kconfig | 11 --- drivers/uio/Makefile | 1 - drivers/uio/uio_netx.c | 178 ----------------------------------------- 3 files changed, 190 deletions(-) delete mode 100644 drivers/uio/uio_netx.c
drivers/uio/Kconfig +0 -11
@@ -94,17 +94,6 @@ config UIO_PCI_GENERIC primarily, for virtualization scenarios. If you compile this as a module, it will be called uio_pci_generic. -config UIO_NETX - tristate "Hilscher NetX Card driver" - depends on PCI - help - Driver for Hilscher NetX based fieldbus cards (cifX, comX). - This driver requires a userspace component that comes with the card - or is available from Hilscher (http://www.hilscher.com). - - To compile this driver as a module, choose M here; the module - will be called uio_netx. - config UIO_FSL_ELBC_GPCM tristate "eLBC/GPCM driver" depends on FSL_LBC
drivers/uio/Makefile +0 -1
@@ -6,7 +6,6 @@ obj-$(CONFIG_UIO_DMEM_GENIRQ) += uio_dmem_genirq.o obj-$(CONFIG_UIO_AEC) += uio_aec.o obj-$(CONFIG_UIO_SERCOS3) += uio_sercos3.o obj-$(CONFIG_UIO_PCI_GENERIC) += uio_pci_generic.o -obj-$(CONFIG_UIO_NETX) += uio_netx.o obj-$(CONFIG_UIO_PRUSS) += uio_pruss.o obj-$(CONFIG_UIO_MF624) += uio_mf624.o obj-$(CONFIG_UIO_FSL_ELBC_GPCM) += uio_fsl_elbc_gpcm.o
drivers/uio/uio_netx.c deleted +0 -178
178 lines not on this page · raw message
Signature · 1 line
2.20.0
AW: [PATCH 3/3] uio: remove netx driver
The "uio_netx" driver is not used in conjunction with the removed netX SoC support.
It is used to handle netX-Based PCI(e) cards (https://www.hilscher.com/products/product-groups/pc-cards/) plugged into a PC or any kind of embedded hardware.
So a removal of this driver would render those extension cards unusable in future.
--
Michael Trensch | netX System
Phone: +49 (0) 6190 9907-0 | Fax: +49 (0) 6190 9907-50 | [email protected]
Quoted 235 lines
-----Ursprüngliche Nachricht-----
Von: Arnd Bergmann <[email protected]>
Gesendet: Montag, 22. Juli 2019 21:15
An: Greg Kroah-Hartman <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; Sascha Hauer <[email protected]>; Michael Trensch <[email protected]>; Linus Walleij <[email protected]>; Robert Schwebel <[email protected]>; Arnd Bergmann <[email protected]>; [email protected]
Betreff: [PATCH 3/3] uio: remove netx driverThe netx platform got removed, so this driver is now useless.
Signed-off-by Arnd Bergmann <[email protected]>--- drivers/uio/Kconfig | 11 --- drivers/uio/Makefile | 1 - drivers/uio/uio_netx.c | 178 ----------------------------------------- 3 files changed, 190 deletions(-) delete mode 100644 drivers/uio/uio_netx.cdrivers/uio/Kconfig index renamed from drivers/uio/Kconfig +0
-0
202ee81cfc2b..abc8dd97b474100644drivers/uio/Kconfig +0
-11@@ -94,17 +94,6 @@ config UIO_PCI_GENERIC primarily, for virtualization scenarios. If you compile this as a module, it will be called uio_pci_generic. -config UIO_NETX -tristate "Hilscher NetX Card driver" -depends on PCI -help - Driver for Hilscher NetX based fieldbus cards (cifX, comX). - This driver requires a userspace component that comes with the card - or is available from Hilscher (http://www.hilscher.com). - - To compile this driver as a module, choose M here; the module - will be called uio_netx. - config UIO_FSL_ELBC_GPCM tristate "eLBC/GPCM driver" depends on FSL_LBCdrivers/uio/Makefile index renamed from drivers/uio/Makefile +0
-0
c285dd2a4539..d94012263a42100644drivers/uio/Makefile +0
-0@@ -6,7 +6,6 @@ obj-$(CONFIG_UIO_DMEM_GENIRQ)+=uio_dmem_genirq.o
obj-$(CONFIG_UIO_AEC)+= uio_aec.o obj-$(CONFIG_UIO_SERCOS3)+= uio_sercos3.o obj-$(CONFIG_UIO_PCI_GENERIC)+= uio_pci_generic.odrivers/uio/Makefile +0
-1-obj-$(CONFIG_UIO_NETX)+= uio_netx.o obj-$(CONFIG_UIO_PRUSS) += uio_pruss.o obj-$(CONFIG_UIO_MF624) += uio_mf624.o obj-$(CONFIG_UIO_FSL_ELBC_GPCM)+= uio_fsl_elbc_gpcm.odrivers/uio/uio_netx.c deleted file mode renamed from drivers/uio/uio_netx.c +0
-0100644 index 9ae29ffde410..000000000000
drivers/uio/uio_netx.c deleted +0
-174@@ -1,178 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* -* UIO driver for Hilscher NetX based fieldbus cards (cifX, comX). -* See http://www.hilscher.com for details. -* -* (C) 2007 Hans J. Koch <[email protected]> -* (C) 2008 Manuel Traut <[email protected]> -* -*/ - -#include <linux/device.h> -#include <linux/io.h> -#include <linux/module.h> -#include <linux/pci.h> -#include <linux/slab.h> -#include <linux/uio_driver.h> - -#define PCI_VENDOR_ID_HILSCHER0x15CF -#define PCI_DEVICE_ID_HILSCHER_NETX0x0000 -#define PCI_DEVICE_ID_HILSCHER_NETPLC0x0010 -#define PCI_SUBDEVICE_ID_NETPLC_RAM0x0000 -#define PCI_SUBDEVICE_ID_NETPLC_FLASH0x0001 -#define PCI_SUBDEVICE_ID_NXSB_PCA0x3235 -#define PCI_SUBDEVICE_ID_NXPCA0x3335 - -#define DPM_HOST_INT_EN00xfff0 -#define DPM_HOST_INT_STAT00xffe0 - -#define DPM_HOST_INT_MASK0xe600ffff -#define DPM_HOST_INT_GLOBAL_EN0x80000000 - -static irqreturn_t netx_handler(int irq, struct uio_info *dev_info) -{ -void __iomem *int_enable_reg = dev_info->mem[0 ].internal_addr -+DPM_HOST_INT_EN0 ; -void __iomem *int_status_reg = dev_info->mem[0 ].internal_addr -+DPM_HOST_INT_STAT0 ; - -/* Is one of our interrupts enabled and active ? */ -if (!(ioread32 (int_enable_reg) &ioread32 (int_status_reg) -&DPM_HOST_INT_MASK )) -return IRQ_NONE ; - -/* Disable interrupt */ -iowrite32 (ioread32 (int_enable_reg) & ~DPM_HOST_INT_GLOBAL_EN , -int_enable_reg); -return IRQ_HANDLED ; -} - -static int netx_pci_probe (struct pci_dev *dev, -const struct pci_device_id *id) -{ -struct uio_info *info; -int bar; - -info =kzalloc (sizeof (struct uio_info ),GFP_KERNEL ); -if (!info) -return -ENOMEM ; - -if (pci_enable_device (dev)) -goto out_free; - -if (pci_request_regions (dev,"netx" )) -goto out_disable; - -switch (id->device) { -case PCI_DEVICE_ID_HILSCHER_NETX : -bar =0 ; -info->name ="netx" ; -break ; -case PCI_DEVICE_ID_HILSCHER_NETPLC : -bar =0 ; -info->name ="netplc" ; -break ; -default : -bar =2 ; -info->name ="netx_plx" ; -} - -/* BAR0 or 2 points to the card's dual port memory */ -info->mem[0 ].addr =pci_resource_start (dev, bar); -if (!info->mem[0 ].addr) -goto out_release; -info->mem[0 ].internal_addr =ioremap (pci_resource_start (dev, bar), -pci_resource_len (dev, bar)); - -if (!info->mem[0 ].internal_addr) -goto out_release; - -info->mem[0 ].size =pci_resource_len (dev, bar); -info->mem[0 ].memtype =UIO_MEM_PHYS ; -info->irq = dev->irq; -info->irq_flags =IRQF_SHARED ; -info->handler = netx_handler; -info->version ="0.0.1" ; - -/* Make sure all interrupts are disabled */ -iowrite32 (0 , info->mem[0 ].internal_addr +DPM_HOST_INT_EN0 ); - -if (uio_register_device (&dev->dev, info)) -goto out_unmap; - -pci_set_drvdata (dev, info); -dev_info (&dev->dev,"Found %s card, registered UIO device.\n" , -info->name); - -return 0 ; - -out_unmap: -iounmap (info->mem[0 ].internal_addr); -out_release: -pci_release_regions (dev); -out_disable: -pci_disable_device (dev); -out_free: -kfree (info); -return -ENODEV ; -} - -static void netx_pci_remove(struct pci_dev *dev) -{ -struct uio_info *info =pci_get_drvdata (dev); - -/* Disable all interrupts */ -iowrite32 (0 , info->mem[0 ].internal_addr +DPM_HOST_INT_EN0 ); -uio_unregister_device (info); -pci_release_regions (dev); -pci_disable_device (dev); -iounmap (info->mem[0 ].internal_addr); - -kfree (info); -} - -static struct pci_device_id netx_pci_ids[] = { -{ -.vendor =PCI_VENDOR_ID_HILSCHER , -.device =PCI_DEVICE_ID_HILSCHER_NETX , -.subvendor =0 , -.subdevice =0 , -}, -{ -.vendor =PCI_VENDOR_ID_HILSCHER , -.device =PCI_DEVICE_ID_HILSCHER_NETPLC , -.subvendor =PCI_VENDOR_ID_HILSCHER , -.subdevice =PCI_SUBDEVICE_ID_NETPLC_RAM , -}, -{ -.vendor =PCI_VENDOR_ID_HILSCHER , -.device =PCI_DEVICE_ID_HILSCHER_NETPLC , -.subvendor =PCI_VENDOR_ID_HILSCHER , -.subdevice =PCI_SUBDEVICE_ID_NETPLC_FLASH , -}, -{ -.vendor =PCI_VENDOR_ID_PLX , -.device =PCI_DEVICE_ID_PLX_9030 , -.subvendor =PCI_VENDOR_ID_PLX , -.subdevice =PCI_SUBDEVICE_ID_NXSB_PCA , -}, -{ -.vendor =PCI_VENDOR_ID_PLX , -.device =PCI_DEVICE_ID_PLX_9030 , -.subvendor =PCI_VENDOR_ID_PLX , -.subdevice =PCI_SUBDEVICE_ID_NXPCA , -}, -{0 , } -}; - -static struct pci_driver netx_pci_driver = { -.name ="netx" , -.id_table = netx_pci_ids, -.probe = netx_pci_probe, -.remove = netx_pci_remove, -}; - -module_pci_driver (netx_pci_driver); -MODULE_DEVICE_TABLE(pci, netx_pci_ids); -MODULE_LICENSE("GPL v2"); -
Quoted 3 lines
MODULE_AUTHOR("Hans J. Koch, Manuel Traut");
--
2.20.0
Hilscher Gesellschaft für Systemautomation mbH | Rheinstrasse 15 | 65795 Hattersheim | Germany | www.hilscher.com<http://www.hilscher.com>
Sitz der Gesellschaft / place of business: Hattersheim | Geschäftsführer / managing director: Dipl.-Ing. Hans-Jürgen Hilscher Handelsregister / commercial register: Frankfurt B 26873 | Ust. Idnr. / VAT No.: DE113852715 Registergericht / register court: Amtsgericht Frankfurt/Main
Important Information:
This e-mail message including its attachments contains confidential and legally protected information solely intended for the addressee. If you are not the intended addressee of this message, please contact the addresser immediately and delete this message including its attachments. The unauthorized dissemination, copying and change of this e-mail are strictly forbidden. The addresser shall not be liable for the content of such changed e-mails.
Wichtiger Hinweis:
Diese E-Mail einschließlich ihrer Anhänge enthält vertrauliche und rechtlich geschützte Informationen, die nur für den Adressaten bestimmt sind. Sollten Sie nicht der bezeichnete Adressat sein, so teilen Sie dies bitte dem Absender umgehend mit und löschen Sie diese Nachricht und ihre Anhänge. Die unbefugte Weitergabe, das Anfertigen von Kopien und jede Veränderung der E-Mail ist untersagt. Der Absender haftet nicht für Inhalte von veränderten E-Mails.
Re: [PATCH 3/3] uio: remove netx driver
Quoted 5 lines · Michael Trensch
The "
uio_netx" driver is not used in conjunction with the removed netX SoC support.
It is used to handle netX-Based PCI(e) cards (https://www.hilscher.com/products/product-groups/pc-cards/) plugged into a PC or any kind of embedded hardware.So a removal of this driver would render those extension cards unusable in future.
Ok, thanks for the quick reply, let's pretend I never sent that patch then.
Arnd