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

staging: greybus: move the greybus core to drivers/greybus

The Greybus core code has been stable for a long time, and has been
shipping for many years in millions of phones. With the advent of a
recent Google Summer of Code project, and a number of new devices in the
works from various companies, it is time to get the core greybus code
out of staging as it really is going to be with us for a while.

Cc: Johan Hovold <johan@kernel.org>
Cc: linux-kernel@vger.kernel.org
Cc: greybus-dev@lists.linaro.org
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Alex Elder <elder@kernel.org>
Link: https://lore.kernel.org/r/20190825055429.18547-9-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+42 -34
+3
MAINTAINERS
··· 7003 7003 M: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 7004 7004 S: Maintained 7005 7005 F: drivers/staging/greybus/ 7006 + F: drivers/greybus/ 7007 + F: include/linux/greybus.h 7008 + F: include/linux/greybus/ 7006 7009 L: greybus-dev@lists.linaro.org (moderated for non-subscribers) 7007 7010 7008 7011 GREYBUS UART PROTOCOLS DRIVERS
+2
drivers/Kconfig
··· 146 146 147 147 source "drivers/xen/Kconfig" 148 148 149 + source "drivers/greybus/Kconfig" 150 + 149 151 source "drivers/staging/Kconfig" 150 152 151 153 source "drivers/platform/Kconfig"
+1
drivers/Makefile
··· 148 148 obj-$(CONFIG_VHOST_RING) += vhost/ 149 149 obj-$(CONFIG_VHOST) += vhost/ 150 150 obj-$(CONFIG_VLYNQ) += vlynq/ 151 + obj-$(CONFIG_GREYBUS) += greybus/ 151 152 obj-$(CONFIG_STAGING) += staging/ 152 153 obj-y += platform/ 153 154
+16
drivers/greybus/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + menuconfig GREYBUS 3 + tristate "Greybus support" 4 + depends on SYSFS 5 + ---help--- 6 + This option enables the Greybus driver core. Greybus is an 7 + hardware protocol that was designed to provide Unipro with a 8 + sane application layer. It was originally designed for the 9 + ARA project, a module phone system, but has shown up in other 10 + phones, and can be tunneled over other busses in order to 11 + control hardware devices. 12 + 13 + Say Y here to enable support for these types of drivers. 14 + 15 + To compile this code as a module, chose M here: the module 16 + will be called greybus.ko
+19
drivers/greybus/Makefile
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + # Greybus core 3 + greybus-y := core.o \ 4 + debugfs.o \ 5 + hd.o \ 6 + manifest.o \ 7 + module.o \ 8 + interface.o \ 9 + bundle.o \ 10 + connection.o \ 11 + control.o \ 12 + svc.o \ 13 + svc_watchdog.o \ 14 + operation.o 15 + 16 + obj-$(CONFIG_GREYBUS) += greybus.o 17 + 18 + # needed for trace events 19 + ccflags-y += -I$(src)
-16
drivers/staging/greybus/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - menuconfig GREYBUS 3 - tristate "Greybus support" 4 - depends on SYSFS 5 - ---help--- 6 - This option enables the Greybus driver core. Greybus is an 7 - hardware protocol that was designed to provide Unipro with a 8 - sane application layer. It was originally designed for the 9 - ARA project, a module phone system, but has shown up in other 10 - phones, and can be tunneled over other busses in order to 11 - control hardware devices. 12 - 13 - Say Y here to enable support for these types of drivers. 14 - 15 - To compile this code as a module, chose M here: the module 16 - will be called greybus.ko 17 - 18 2 if GREYBUS 19 3 20 4 config GREYBUS_ES2
-17
drivers/staging/greybus/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - # Greybus core 3 - greybus-y := core.o \ 4 - debugfs.o \ 5 - hd.o \ 6 - manifest.o \ 7 - module.o \ 8 - interface.o \ 9 - bundle.o \ 10 - connection.o \ 11 - control.o \ 12 - svc.o \ 13 - svc_watchdog.o \ 14 - operation.o 15 - 16 - obj-$(CONFIG_GREYBUS) += greybus.o 17 - 18 2 # needed for trace events 19 3 ccflags-y += -I$(src) 20 - 21 4 22 5 # Greybus Host controller drivers 23 6 gb-es2-y := es2.o
drivers/staging/greybus/bundle.c drivers/greybus/bundle.c
drivers/staging/greybus/connection.c drivers/greybus/connection.c
drivers/staging/greybus/control.c drivers/greybus/control.c
drivers/staging/greybus/core.c drivers/greybus/core.c
drivers/staging/greybus/debugfs.c drivers/greybus/debugfs.c
+1 -1
drivers/staging/greybus/es2.c
··· 15 15 #include <asm/unaligned.h> 16 16 17 17 #include "arpc.h" 18 - #include "greybus_trace.h" 18 + #include "../../greybus/greybus_trace.h" 19 19 20 20 21 21 /* Default timeout for USB vendor requests. */
drivers/staging/greybus/greybus_trace.h drivers/greybus/greybus_trace.h
drivers/staging/greybus/hd.c drivers/greybus/hd.c
drivers/staging/greybus/interface.c drivers/greybus/interface.c
drivers/staging/greybus/manifest.c drivers/greybus/manifest.c
drivers/staging/greybus/module.c drivers/greybus/module.c
drivers/staging/greybus/operation.c drivers/greybus/operation.c
drivers/staging/greybus/svc.c drivers/greybus/svc.c
drivers/staging/greybus/svc_watchdog.c drivers/greybus/svc_watchdog.c