Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vme: move back to staging

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>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
35ba63b8 34935361

+40 -58
+2 -2
Documentation/driver-api/vme.rst
··· 290 290 VME API 291 291 ------- 292 292 293 - .. kernel-doc:: include/linux/vme.h 293 + .. kernel-doc:: drivers/staging/vme_user/vme.h 294 294 :internal: 295 295 296 - .. kernel-doc:: drivers/vme/vme.c 296 + .. kernel-doc:: drivers/staging/vme_user/vme.c 297 297 :export:
+1 -3
MAINTAINERS
··· 21230 21230 M: Manohar Vanga <manohar.vanga@gmail.com> 21231 21231 M: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 21232 21232 L: linux-kernel@vger.kernel.org 21233 - S: Maintained 21233 + S: Odd fixes 21234 21234 T: git git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 21235 21235 F: Documentation/driver-api/vme.rst 21236 21236 F: drivers/staging/vme_user/ 21237 - F: drivers/vme/ 21238 - F: include/linux/vme* 21239 21237 21240 21238 VM SOCKETS (AF_VSOCK) 21241 21239 M: Stefano Garzarella <sgarzare@redhat.com>
-2
drivers/Kconfig
··· 183 183 184 184 source "drivers/ntb/Kconfig" 185 185 186 - source "drivers/vme/Kconfig" 187 - 188 186 source "drivers/pwm/Kconfig" 189 187 190 188 source "drivers/irqchip/Kconfig"
-1
drivers/Makefile
··· 165 165 obj-$(CONFIG_EXTCON) += extcon/ 166 166 obj-$(CONFIG_MEMORY) += memory/ 167 167 obj-$(CONFIG_IIO) += iio/ 168 - obj-$(CONFIG_VME_BUS) += vme/ 169 168 obj-$(CONFIG_IPACK_BUS) += ipack/ 170 169 obj-$(CONFIG_NTB) += ntb/ 171 170 obj-$(CONFIG_POWERCAP) += powercap/
+27
drivers/staging/vme_user/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 + menuconfig VME_BUS 3 + bool "VME bridge support" 4 + depends on STAGING && PCI 5 + help 6 + If you say Y here you get support for the VME bridge Framework. 7 + 8 + if VME_BUS 9 + 10 + comment "VME Bridge Drivers" 11 + 12 + config VME_TSI148 13 + tristate "Tempe" 14 + depends on HAS_DMA 15 + help 16 + If you say Y here you get support for the Tundra TSI148 VME bridge 17 + chip. 18 + 19 + config VME_FAKE 20 + tristate "Fake" 21 + help 22 + If you say Y here you get support for the fake VME bridge. This 23 + provides a virtualised VME Bus for devices with no VME bridge. This 24 + is mainly useful for VME development (in the absence of VME 25 + hardware). 26 + 2 27 comment "VME Device Drivers" 3 28 4 29 config VME_USER ··· 36 11 37 12 To compile this driver as a module, choose M here. The module will 38 13 be called vme_user. If unsure, say N. 14 + 15 + endif
+3
drivers/staging/vme_user/Makefile
··· 3 3 # Makefile for the VME device drivers. 4 4 # 5 5 6 + obj-$(CONFIG_VME_BUS) += vme.o 6 7 obj-$(CONFIG_VME_USER) += vme_user.o 8 + obj-$(CONFIG_VME_TSI148) += vme_tsi148.o 9 + obj-$(CONFIG_VME_FAKE) += vme_fake.o
+1 -1
drivers/staging/vme_user/vme_user.c
··· 33 33 34 34 #include <linux/io.h> 35 35 #include <linux/uaccess.h> 36 - #include <linux/vme.h> 37 36 37 + #include "vme.h" 38 38 #include "vme_user.h" 39 39 40 40 static const char driver_name[] = "vme_user";
-16
drivers/vme/Kconfig
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - # 3 - # VME configuration. 4 - # 5 - 6 - menuconfig VME_BUS 7 - bool "VME bridge support" 8 - depends on PCI 9 - help 10 - If you say Y here you get support for the VME bridge Framework. 11 - 12 - if VME_BUS 13 - 14 - source "drivers/vme/bridges/Kconfig" 15 - 16 - endif # VME
-7
drivers/vme/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - # 3 - # Makefile for the VME bridge device drivers. 4 - # 5 - obj-$(CONFIG_VME_BUS) += vme.o 6 - 7 - obj-y += bridges/
-17
drivers/vme/bridges/Kconfig
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - comment "VME Bridge Drivers" 3 - 4 - config VME_TSI148 5 - tristate "Tempe" 6 - depends on HAS_DMA 7 - help 8 - If you say Y here you get support for the Tundra TSI148 VME bridge 9 - chip. 10 - 11 - config VME_FAKE 12 - tristate "Fake" 13 - help 14 - If you say Y here you get support for the fake VME bridge. This 15 - provides a virtualised VME Bus for devices with no VME bridge. This 16 - is mainly useful for VME development (in the absence of VME 17 - hardware).
-3
drivers/vme/bridges/Makefile
··· 1 - # SPDX-License-Identifier: GPL-2.0-only 2 - obj-$(CONFIG_VME_TSI148) += vme_tsi148.o 3 - obj-$(CONFIG_VME_FAKE) += vme_fake.o
+2 -2
drivers/vme/bridges/vme_fake.c drivers/staging/vme_user/vme_fake.c
··· 29 29 #include <linux/slab.h> 30 30 #include <linux/spinlock.h> 31 31 #include <linux/types.h> 32 - #include <linux/vme.h> 33 32 34 - #include "../vme_bridge.h" 33 + #include "vme.h" 34 + #include "vme_bridge.h" 35 35 36 36 /* 37 37 * Define the number of each that the fake driver supports.
+2 -2
drivers/vme/bridges/vme_tsi148.c drivers/staging/vme_user/vme_tsi148.c
··· 26 26 #include <linux/io.h> 27 27 #include <linux/uaccess.h> 28 28 #include <linux/byteorder/generic.h> 29 - #include <linux/vme.h> 30 29 31 - #include "../vme_bridge.h" 30 + #include "vme.h" 31 + #include "vme_bridge.h" 32 32 #include "vme_tsi148.h" 33 33 34 34 static int tsi148_probe(struct pci_dev *, const struct pci_device_id *);
drivers/vme/bridges/vme_tsi148.h drivers/staging/vme_user/vme_tsi148.h
+1 -1
drivers/vme/vme.c drivers/staging/vme_user/vme.c
··· 26 26 #include <linux/mutex.h> 27 27 #include <linux/spinlock.h> 28 28 #include <linux/slab.h> 29 - #include <linux/vme.h> 30 29 30 + #include "vme.h" 31 31 #include "vme_bridge.h" 32 32 33 33 /* Bitmask and list of registered buses both protected by common mutex */
+1 -1
drivers/vme/vme_bridge.h drivers/staging/vme_user/vme_bridge.h
··· 2 2 #ifndef _VME_BRIDGE_H_ 3 3 #define _VME_BRIDGE_H_ 4 4 5 - #include <linux/vme.h> 5 + #include "vme.h" 6 6 7 7 #define VME_CRCSR_BUF_SIZE (508*1024) 8 8 /*
include/linux/vme.h drivers/staging/vme_user/vme.h