diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-25 07:54:28 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-27 19:03:04 +0200 |
commit | 8465def499c70d041a234087eff380108da7e830 (patch) | |
tree | 209915ea6e2d6f3d44273d192878dd00befda7d0 /drivers | |
parent | ec0ad868173da8a75121f9dc116a5d5478ff614d (diff) | |
download | linux-stable-8465def499c70d041a234087eff380108da7e830.tar.gz linux-stable-8465def499c70d041a234087eff380108da7e830.tar.bz2 linux-stable-8465def499c70d041a234087eff380108da7e830.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/Kconfig | 2 | ||||
-rw-r--r-- | drivers/Makefile | 1 | ||||
-rw-r--r-- | drivers/greybus/Kconfig | 16 | ||||
-rw-r--r-- | drivers/greybus/Makefile | 19 | ||||
-rw-r--r-- | drivers/greybus/bundle.c (renamed from drivers/staging/greybus/bundle.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/connection.c (renamed from drivers/staging/greybus/connection.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/control.c (renamed from drivers/staging/greybus/control.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/core.c (renamed from drivers/staging/greybus/core.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/debugfs.c (renamed from drivers/staging/greybus/debugfs.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/greybus_trace.h (renamed from drivers/staging/greybus/greybus_trace.h) | 0 | ||||
-rw-r--r-- | drivers/greybus/hd.c (renamed from drivers/staging/greybus/hd.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/interface.c (renamed from drivers/staging/greybus/interface.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/manifest.c (renamed from drivers/staging/greybus/manifest.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/module.c (renamed from drivers/staging/greybus/module.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/operation.c (renamed from drivers/staging/greybus/operation.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/svc.c (renamed from drivers/staging/greybus/svc.c) | 0 | ||||
-rw-r--r-- | drivers/greybus/svc_watchdog.c (renamed from drivers/staging/greybus/svc_watchdog.c) | 0 | ||||
-rw-r--r-- | drivers/staging/greybus/Kconfig | 16 | ||||
-rw-r--r-- | drivers/staging/greybus/Makefile | 17 | ||||
-rw-r--r-- | drivers/staging/greybus/es2.c | 2 |
20 files changed, 39 insertions, 34 deletions
diff --git a/drivers/Kconfig b/drivers/Kconfig index 61cf4ea2c229..7dce76ae7369 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -146,6 +146,8 @@ source "drivers/hv/Kconfig" source "drivers/xen/Kconfig" +source "drivers/greybus/Kconfig" + source "drivers/staging/Kconfig" source "drivers/platform/Kconfig" diff --git a/drivers/Makefile b/drivers/Makefile index 6d37564e783c..73df8e5a2fce 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -148,6 +148,7 @@ obj-$(CONFIG_BCMA) += bcma/ obj-$(CONFIG_VHOST_RING) += vhost/ obj-$(CONFIG_VHOST) += vhost/ obj-$(CONFIG_VLYNQ) += vlynq/ +obj-$(CONFIG_GREYBUS) += greybus/ obj-$(CONFIG_STAGING) += staging/ obj-y += platform/ diff --git a/drivers/greybus/Kconfig b/drivers/greybus/Kconfig new file mode 100644 index 000000000000..158d8893114c --- /dev/null +++ b/drivers/greybus/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0 +menuconfig GREYBUS + tristate "Greybus support" + depends on SYSFS + ---help--- + This option enables the Greybus driver core. Greybus is an + hardware protocol that was designed to provide Unipro with a + sane application layer. It was originally designed for the + ARA project, a module phone system, but has shown up in other + phones, and can be tunneled over other busses in order to + control hardware devices. + + Say Y here to enable support for these types of drivers. + + To compile this code as a module, chose M here: the module + will be called greybus.ko diff --git a/drivers/greybus/Makefile b/drivers/greybus/Makefile new file mode 100644 index 000000000000..03b22616ec7d --- /dev/null +++ b/drivers/greybus/Makefile @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0 +# Greybus core +greybus-y := core.o \ + debugfs.o \ + hd.o \ + manifest.o \ + module.o \ + interface.o \ + bundle.o \ + connection.o \ + control.o \ + svc.o \ + svc_watchdog.o \ + operation.o + +obj-$(CONFIG_GREYBUS) += greybus.o + +# needed for trace events +ccflags-y += -I$(src) diff --git a/drivers/staging/greybus/bundle.c b/drivers/greybus/bundle.c index 84660729538b..84660729538b 100644 --- a/drivers/staging/greybus/bundle.c +++ b/drivers/greybus/bundle.c diff --git a/drivers/staging/greybus/connection.c b/drivers/greybus/connection.c index fc8f57f97ce6..fc8f57f97ce6 100644 --- a/drivers/staging/greybus/connection.c +++ b/drivers/greybus/connection.c diff --git a/drivers/staging/greybus/control.c b/drivers/greybus/control.c index 359a25841973..359a25841973 100644 --- a/drivers/staging/greybus/control.c +++ b/drivers/greybus/control.c diff --git a/drivers/staging/greybus/core.c b/drivers/greybus/core.c index e546c6431877..e546c6431877 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/greybus/core.c diff --git a/drivers/staging/greybus/debugfs.c b/drivers/greybus/debugfs.c index e102d7badb9d..e102d7badb9d 100644 --- a/drivers/staging/greybus/debugfs.c +++ b/drivers/greybus/debugfs.c diff --git a/drivers/staging/greybus/greybus_trace.h b/drivers/greybus/greybus_trace.h index 1bc9f1275c65..1bc9f1275c65 100644 --- a/drivers/staging/greybus/greybus_trace.h +++ b/drivers/greybus/greybus_trace.h diff --git a/drivers/staging/greybus/hd.c b/drivers/greybus/hd.c index 72b21bf2d7d3..72b21bf2d7d3 100644 --- a/drivers/staging/greybus/hd.c +++ b/drivers/greybus/hd.c diff --git a/drivers/staging/greybus/interface.c b/drivers/greybus/interface.c index 67dbe6fda9a1..67dbe6fda9a1 100644 --- a/drivers/staging/greybus/interface.c +++ b/drivers/greybus/interface.c diff --git a/drivers/staging/greybus/manifest.c b/drivers/greybus/manifest.c index dd7040697bde..dd7040697bde 100644 --- a/drivers/staging/greybus/manifest.c +++ b/drivers/greybus/manifest.c diff --git a/drivers/staging/greybus/module.c b/drivers/greybus/module.c index 36f77f9e1d74..36f77f9e1d74 100644 --- a/drivers/staging/greybus/module.c +++ b/drivers/greybus/module.c diff --git a/drivers/staging/greybus/operation.c b/drivers/greybus/operation.c index 8459e9bc0749..8459e9bc0749 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/greybus/operation.c diff --git a/drivers/staging/greybus/svc.c b/drivers/greybus/svc.c index ce7740ef449b..ce7740ef449b 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/greybus/svc.c diff --git a/drivers/staging/greybus/svc_watchdog.c b/drivers/greybus/svc_watchdog.c index b6b1682c19c4..b6b1682c19c4 100644 --- a/drivers/staging/greybus/svc_watchdog.c +++ b/drivers/greybus/svc_watchdog.c diff --git a/drivers/staging/greybus/Kconfig b/drivers/staging/greybus/Kconfig index 4894c3514955..d03c37e1e6e8 100644 --- a/drivers/staging/greybus/Kconfig +++ b/drivers/staging/greybus/Kconfig @@ -1,20 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -menuconfig GREYBUS - tristate "Greybus support" - depends on SYSFS - ---help--- - This option enables the Greybus driver core. Greybus is an - hardware protocol that was designed to provide Unipro with a - sane application layer. It was originally designed for the - ARA project, a module phone system, but has shown up in other - phones, and can be tunneled over other busses in order to - control hardware devices. - - Say Y here to enable support for these types of drivers. - - To compile this code as a module, chose M here: the module - will be called greybus.ko - if GREYBUS config GREYBUS_ES2 diff --git a/drivers/staging/greybus/Makefile b/drivers/staging/greybus/Makefile index 2551ed16b742..d16853399c9a 100644 --- a/drivers/staging/greybus/Makefile +++ b/drivers/staging/greybus/Makefile @@ -1,24 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 -# Greybus core -greybus-y := core.o \ - debugfs.o \ - hd.o \ - manifest.o \ - module.o \ - interface.o \ - bundle.o \ - connection.o \ - control.o \ - svc.o \ - svc_watchdog.o \ - operation.o - -obj-$(CONFIG_GREYBUS) += greybus.o - # needed for trace events ccflags-y += -I$(src) - # Greybus Host controller drivers gb-es2-y := es2.o diff --git a/drivers/staging/greybus/es2.c b/drivers/staging/greybus/es2.c index 366716f11b1a..5b755e76d8a4 100644 --- a/drivers/staging/greybus/es2.c +++ b/drivers/staging/greybus/es2.c @@ -15,7 +15,7 @@ #include <asm/unaligned.h> #include "arpc.h" -#include "greybus_trace.h" +#include "../../greybus/greybus_trace.h" /* Default timeout for USB vendor requests. */ |