Skip to content

Commit 8465def

Browse files
committed
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>
1 parent ec0ad86 commit 8465def

21 files changed

Lines changed: 42 additions & 34 deletions

‎MAINTAINERS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7003,6 +7003,9 @@ M: Alex Elder <elder@kernel.org>
70037003
M: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
70047004
S: Maintained
70057005
F: drivers/staging/greybus/
7006+
F: drivers/greybus/
7007+
F: include/linux/greybus.h
7008+
F: include/linux/greybus/
70067009
L: greybus-dev@lists.linaro.org (moderated for non-subscribers)
70077010

70087011
GREYBUS UART PROTOCOLS DRIVERS

‎drivers/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ source "drivers/hv/Kconfig"
146146

147147
source "drivers/xen/Kconfig"
148148

149+
source "drivers/greybus/Kconfig"
150+
149151
source "drivers/staging/Kconfig"
150152

151153
source "drivers/platform/Kconfig"

‎drivers/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ obj-$(CONFIG_BCMA) += bcma/
148148
obj-$(CONFIG_VHOST_RING) += vhost/
149149
obj-$(CONFIG_VHOST) += vhost/
150150
obj-$(CONFIG_VLYNQ) += vlynq/
151+
obj-$(CONFIG_GREYBUS) += greybus/
151152
obj-$(CONFIG_STAGING) += staging/
152153
obj-y += platform/
153154

‎drivers/greybus/Kconfig‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

‎drivers/greybus/Makefile‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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)

0 commit comments

Comments
 (0)