]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
vme: move back to staging
authorArnd Bergmann <arnd@arndb.de>
Mon, 6 Jun 2022 08:41:05 +0000 (10:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jun 2022 13:38:14 +0000 (15:38 +0200)
The VME subsystem graduated from staging into a top-level subsystem in
2012, with commit db3b9e990e75 ("Staging: VME: move VME drivers out of
staging") stating:

    The VME device drivers have not moved out yet due to some API
    questions they are still working through, that should happen soon,
    hopefully.

However, this never happened: maintenance of drivers/vme effectively
stopped in 2017, with all subsequent changes being treewide cleanups.
No hardware driver remains in staging, only the limited user-level
access, and I just removed one of the two bridge drivers and the only
remaining board.

drivers/staging/vme/devices/ was recently moved to
drivers/staging/vme_user/, but as the vme_user driver is the only one
remaining for this subsystem, it is easier to just move the remaining
three source files into this directory rather than keeping the original
hierarchy.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20220606084109.4108188-3-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 files changed:
Documentation/driver-api/vme.rst
MAINTAINERS
drivers/Kconfig
drivers/Makefile
drivers/staging/vme_user/Kconfig
drivers/staging/vme_user/Makefile
drivers/staging/vme_user/vme.c [moved from drivers/vme/vme.c with 99% similarity]
drivers/staging/vme_user/vme.h [moved from include/linux/vme.h with 100% similarity]
drivers/staging/vme_user/vme_bridge.h [moved from drivers/vme/vme_bridge.h with 99% similarity]
drivers/staging/vme_user/vme_fake.c [moved from drivers/vme/bridges/vme_fake.c with 99% similarity]
drivers/staging/vme_user/vme_tsi148.c [moved from drivers/vme/bridges/vme_tsi148.c with 99% similarity]
drivers/staging/vme_user/vme_tsi148.h [moved from drivers/vme/bridges/vme_tsi148.h with 100% similarity]
drivers/staging/vme_user/vme_user.c
drivers/vme/Kconfig [deleted file]
drivers/vme/Makefile [deleted file]
drivers/vme/bridges/Kconfig [deleted file]
drivers/vme/bridges/Makefile [deleted file]

index def139c13410863ccb556af9b3425fadb6acc9c5..c0b475369de0afc1623b8f20dab46dc1df688dd8 100644 (file)
@@ -290,8 +290,8 @@ The function :c:func:`vme_bus_num` returns the bus ID of the provided bridge.
 VME API
 -------
 
-.. kernel-doc:: include/linux/vme.h
+.. kernel-doc:: drivers/staging/vme_user/vme.h
    :internal:
 
-.. kernel-doc:: drivers/vme/vme.c
+.. kernel-doc:: drivers/staging/vme_user/vme.c
    :export:
index 60e5e400784414a651085d4032fe99bc0bc10d1f..7097b824ba187e13cd9844dabfbdfce2530dd919 100644 (file)
@@ -21230,12 +21230,10 @@ M:    Martyn Welch <martyn@welchs.me.uk>
 M:     Manohar Vanga <manohar.vanga@gmail.com>
 M:     Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 L:     linux-kernel@vger.kernel.org
-S:     Maintained
+S:     Odd fixes
 T:     git git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
 F:     Documentation/driver-api/vme.rst
 F:     drivers/staging/vme_user/
-F:     drivers/vme/
-F:     include/linux/vme*
 
 VM SOCKETS (AF_VSOCK)
 M:     Stefano Garzarella <sgarzare@redhat.com>
index b6a172d32a7d378bc398ddeed819a0b8688a9abc..19ee995bd0ae1fe590c20784ff2f92af546bd905 100644 (file)
@@ -183,8 +183,6 @@ source "drivers/iio/Kconfig"
 
 source "drivers/ntb/Kconfig"
 
-source "drivers/vme/Kconfig"
-
 source "drivers/pwm/Kconfig"
 
 source "drivers/irqchip/Kconfig"
index 9a30842b22c5411bf00245761f472da9c13370b7..dadf2678277ff91458af0a51e6f229b386f88960 100644 (file)
@@ -165,7 +165,6 @@ obj-$(CONFIG_PM_DEVFREQ)    += devfreq/
 obj-$(CONFIG_EXTCON)           += extcon/
 obj-$(CONFIG_MEMORY)           += memory/
 obj-$(CONFIG_IIO)              += iio/
-obj-$(CONFIG_VME_BUS)          += vme/
 obj-$(CONFIG_IPACK_BUS)                += ipack/
 obj-$(CONFIG_NTB)              += ntb/
 obj-$(CONFIG_POWERCAP)         += powercap/
index e8b4461bf27fb699bcd447377f83855f631e18b6..c8eabf8f40f101f661dbe7375b4a2fe6dcd0a9d3 100644 (file)
@@ -1,4 +1,29 @@
 # SPDX-License-Identifier: GPL-2.0
+menuconfig VME_BUS
+       bool "VME bridge support"
+       depends on STAGING && PCI
+       help
+         If you say Y here you get support for the VME bridge Framework.
+
+if VME_BUS
+
+comment "VME Bridge Drivers"
+
+config VME_TSI148
+       tristate "Tempe"
+       depends on HAS_DMA
+       help
+        If you say Y here you get support for the Tundra TSI148 VME bridge
+        chip.
+
+config VME_FAKE
+       tristate "Fake"
+       help
+        If you say Y here you get support for the fake VME bridge. This
+        provides a virtualised VME Bus for devices with no VME bridge. This
+        is mainly useful for VME development (in the absence of VME
+        hardware).
+
 comment "VME Device Drivers"
 
 config VME_USER
@@ -11,3 +36,5 @@ config VME_USER
 
          To compile this driver as a module, choose M here. The module will
          be called vme_user. If unsure, say N.
+
+endif
index 5380115139b003a937600378d1b5a2979ffc36ab..8dcc6938ce5c56b6da0298881f0f89bfc3982672 100644 (file)
@@ -3,4 +3,7 @@
 # Makefile for the VME device drivers.
 #
 
+obj-$(CONFIG_VME_BUS)          += vme.o
 obj-$(CONFIG_VME_USER)         += vme_user.o
+obj-$(CONFIG_VME_TSI148)       += vme_tsi148.o
+obj-$(CONFIG_VME_FAKE)         += vme_fake.o
similarity index 99%
rename from drivers/vme/vme.c
rename to drivers/staging/vme_user/vme.c
index 8dba20186be3528ac18747b39f70e71c876c611a..b5555683a069fd0c8ff3b2248294bfcea7e8ab48 100644 (file)
@@ -26,8 +26,8 @@
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 #include <linux/slab.h>
-#include <linux/vme.h>
 
+#include "vme.h"
 #include "vme_bridge.h"
 
 /* Bitmask and list of registered buses both protected by common mutex */
similarity index 99%
rename from drivers/vme/vme_bridge.h
rename to drivers/staging/vme_user/vme_bridge.h
index 42ecf961004e95b510375d65c2e6b546b79e2fb4..0bbefe9851d79abcf8cd73690522cf97a84e0526 100644 (file)
@@ -2,7 +2,7 @@
 #ifndef _VME_BRIDGE_H_
 #define _VME_BRIDGE_H_
 
-#include <linux/vme.h>
+#include "vme.h"
 
 #define VME_CRCSR_BUF_SIZE (508*1024)
 /*
similarity index 99%
rename from drivers/vme/bridges/vme_fake.c
rename to drivers/staging/vme_user/vme_fake.c
index 6a1bc284f297cc4da4a473e68f23c08b34f46ed0..dd646b0c531d411e5132a8fd50c3a9fae643ae33 100644 (file)
@@ -29,9 +29,9 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/types.h>
-#include <linux/vme.h>
 
-#include "../vme_bridge.h"
+#include "vme.h"
+#include "vme_bridge.h"
 
 /*
  *  Define the number of each that the fake driver supports.
similarity index 99%
rename from drivers/vme/bridges/vme_tsi148.c
rename to drivers/staging/vme_user/vme_tsi148.c
index be9051b02f24cf2bad4427fae5e693d6b1b54492..9564762132415526165324008a9d105bd96636d9 100644 (file)
@@ -26,9 +26,9 @@
 #include <linux/io.h>
 #include <linux/uaccess.h>
 #include <linux/byteorder/generic.h>
-#include <linux/vme.h>
 
-#include "../vme_bridge.h"
+#include "vme.h"
+#include "vme_bridge.h"
 #include "vme_tsi148.h"
 
 static int tsi148_probe(struct pci_dev *, const struct pci_device_id *);
index 859af797630c0d7e51c0f70865214b8c5bce28d3..4e533c0bfe6db2fcfa6d1ddb075071e88341a64e 100644 (file)
@@ -33,8 +33,8 @@
 
 #include <linux/io.h>
 #include <linux/uaccess.h>
-#include <linux/vme.h>
 
+#include "vme.h"
 #include "vme_user.h"
 
 static const char driver_name[] = "vme_user";
diff --git a/drivers/vme/Kconfig b/drivers/vme/Kconfig
deleted file mode 100644 (file)
index 26feabb..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# VME configuration.
-#
-
-menuconfig VME_BUS
-       bool "VME bridge support"
-       depends on PCI
-       help
-         If you say Y here you get support for the VME bridge Framework.
-
-if VME_BUS
-
-source "drivers/vme/bridges/Kconfig"
-
-endif # VME
diff --git a/drivers/vme/Makefile b/drivers/vme/Makefile
deleted file mode 100644 (file)
index 2dfb929..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-#
-# Makefile for the VME bridge device drivers.
-#
-obj-$(CONFIG_VME_BUS)          += vme.o
-
-obj-y                          += bridges/
diff --git a/drivers/vme/bridges/Kconfig b/drivers/vme/bridges/Kconfig
deleted file mode 100644 (file)
index 9493b22..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-comment "VME Bridge Drivers"
-
-config VME_TSI148
-       tristate "Tempe"
-       depends on HAS_DMA
-       help
-        If you say Y here you get support for the Tundra TSI148 VME bridge
-        chip.
-
-config VME_FAKE
-       tristate "Fake"
-       help
-        If you say Y here you get support for the fake VME bridge. This
-        provides a virtualised VME Bus for devices with no VME bridge. This
-        is mainly useful for VME development (in the absence of VME
-        hardware).
diff --git a/drivers/vme/bridges/Makefile b/drivers/vme/bridges/Makefile
deleted file mode 100644 (file)
index 043f9cd..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_VME_TSI148)       += vme_tsi148.o
-obj-$(CONFIG_VME_FAKE)         += vme_fake.o