Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2641111ybl; Sat, 24 Aug 2019 22:57:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxj5o6tx9DQIm+ye2CzWBLazepKrpVigO17Tvh3wqY2j6/9pO94uiHrnawlaG+wrkfnTroT X-Received: by 2002:a17:90a:fe0c:: with SMTP id ck12mr13750309pjb.74.1566712631056; Sat, 24 Aug 2019 22:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566712631; cv=none; d=google.com; s=arc-20160816; b=hvF0du93UoawOnSUlL0DljcY6wj73h1/+bIvn60/ez7uCmW1Qmqdx/+AW8H4k5G8Mt 6dHmAJ8F+ihXM594x+TI2F6/llauJeCRdv/ef93xXaoTWMQuGLb1ge5ZNr0S+L41+2MI EU+3F2jkAZa84EYa13SvGMN71DgRdzDnDwRSOWffXKFba5HCVLYYl32REviBJiGsAnsP 8MorlqaCdmizz6slw5OSs+8z4GXdpUtM8r8mEGo2eILQh4PxuPDGSYfSUHjFpUjUH4PM jZB++2CEolPDPY/9wTM5WQFmC6mQr6IUXBMo51wqmeECkvTQ5hQ/Mm90/D+XK+/9/byO GKvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uprsnGB/YyYi//6VZxZSvQKokDyxJD2rqwfwLDogd+0=; b=TsA6Ag/0IxPppogRHFBM+8/GIoWQVX1bjmSFJORQoABbI4WskEvv9KoXMFyUL/DiUC sOxTzjSrmpGePO1Lak1iFP/rE7oNXCtgBqKgoHQXdYmLfUFcXGEE0iE5b8zJgwrhtDYa A41gBnbOtLv9lRSy4K+uGhpD1Gyqj6gtRqekC6FH0LlYQxaqnQcgpragI1Wd01BcdyLa jNeMTRTEv5m+qEXHuaEFFqJqnGOszNHKvcjlYpB4oSe1eEZPH6fKdylJKCjca5oI+Zf0 FqbK/PePng8labMLGBUV8UcTwyMPULhTvRxD6qTPkSAGfs+NNeSsGn+379EBXRJRO/6L OhCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZAR2K7Ag; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e33si6475044pld.436.2019.08.24.22.56.56; Sat, 24 Aug 2019 22:57:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZAR2K7Ag; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727751AbfHYFzT (ORCPT + 99 others); Sun, 25 Aug 2019 01:55:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:33802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbfHYFzP (ORCPT ); Sun, 25 Aug 2019 01:55:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DE7242173E; Sun, 25 Aug 2019 05:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566712514; bh=WqDsH5W012CUCaMyJsxca2TIWS391JkXf1pOc73H0tA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZAR2K7Agj6SiL2jG4oX+yTlmTeApAsO49SPVQNPVoGrLxzW/VIrmoDxbH+Qujdqzy HFJeBhffLAuBegAapW52n9x59nQcw203Hp4CZNRQqR5VFW8i/oEa7GAvxU2n1CFIpo ViMHsbEyKUgGVNNu3LPEj2ZoAnxL4GghL12e56rQ= From: Greg Kroah-Hartman To: devel@driverdev.osuosl.org, greybus-dev@lists.linaro.org, elder@kernel.org, johan@kernel.org Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 8/9] staging: greybus: move the greybus core to drivers/greybus Date: Sun, 25 Aug 2019 07:54:28 +0200 Message-Id: <20190825055429.18547-9-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190825055429.18547-1-gregkh@linuxfoundation.org> References: <20190825055429.18547-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: Alex Elder Cc: linux-kernel@vger.kernel.org Cc: greybus-dev@lists.linaro.org Signed-off-by: Greg Kroah-Hartman --- MAINTAINERS | 3 +++ drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/greybus/Kconfig | 16 ++++++++++++++++ drivers/greybus/Makefile | 19 +++++++++++++++++++ drivers/{staging => }/greybus/bundle.c | 0 drivers/{staging => }/greybus/connection.c | 0 drivers/{staging => }/greybus/control.c | 0 drivers/{staging => }/greybus/core.c | 0 drivers/{staging => }/greybus/debugfs.c | 0 drivers/{staging => }/greybus/greybus_trace.h | 0 drivers/{staging => }/greybus/hd.c | 0 drivers/{staging => }/greybus/interface.c | 0 drivers/{staging => }/greybus/manifest.c | 0 drivers/{staging => }/greybus/module.c | 0 drivers/{staging => }/greybus/operation.c | 0 drivers/{staging => }/greybus/svc.c | 0 drivers/{staging => }/greybus/svc_watchdog.c | 0 drivers/staging/greybus/Kconfig | 16 ---------------- drivers/staging/greybus/Makefile | 17 ----------------- drivers/staging/greybus/es2.c | 2 +- 21 files changed, 42 insertions(+), 34 deletions(-) create mode 100644 drivers/greybus/Kconfig create mode 100644 drivers/greybus/Makefile rename drivers/{staging => }/greybus/bundle.c (100%) rename drivers/{staging => }/greybus/connection.c (100%) rename drivers/{staging => }/greybus/control.c (100%) rename drivers/{staging => }/greybus/core.c (100%) rename drivers/{staging => }/greybus/debugfs.c (100%) rename drivers/{staging => }/greybus/greybus_trace.h (100%) rename drivers/{staging => }/greybus/hd.c (100%) rename drivers/{staging => }/greybus/interface.c (100%) rename drivers/{staging => }/greybus/manifest.c (100%) rename drivers/{staging => }/greybus/module.c (100%) rename drivers/{staging => }/greybus/operation.c (100%) rename drivers/{staging => }/greybus/svc.c (100%) rename drivers/{staging => }/greybus/svc_watchdog.c (100%) diff --git a/MAINTAINERS b/MAINTAINERS index 0f38cba2c581..e3242687cd19 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7003,6 +7003,9 @@ M: Alex Elder M: Greg Kroah-Hartman S: Maintained F: drivers/staging/greybus/ +F: drivers/greybus/ +F: include/linux/greybus.h +F: include/linux/greybus/ L: greybus-dev@lists.linaro.org (moderated for non-subscribers) GREYBUS UART PROTOCOLS DRIVERS 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 similarity index 100% rename from drivers/staging/greybus/bundle.c rename to drivers/greybus/bundle.c diff --git a/drivers/staging/greybus/connection.c b/drivers/greybus/connection.c similarity index 100% rename from drivers/staging/greybus/connection.c rename to drivers/greybus/connection.c diff --git a/drivers/staging/greybus/control.c b/drivers/greybus/control.c similarity index 100% rename from drivers/staging/greybus/control.c rename to drivers/greybus/control.c diff --git a/drivers/staging/greybus/core.c b/drivers/greybus/core.c similarity index 100% rename from drivers/staging/greybus/core.c rename to drivers/greybus/core.c diff --git a/drivers/staging/greybus/debugfs.c b/drivers/greybus/debugfs.c similarity index 100% rename from drivers/staging/greybus/debugfs.c rename to drivers/greybus/debugfs.c diff --git a/drivers/staging/greybus/greybus_trace.h b/drivers/greybus/greybus_trace.h similarity index 100% rename from drivers/staging/greybus/greybus_trace.h rename to drivers/greybus/greybus_trace.h diff --git a/drivers/staging/greybus/hd.c b/drivers/greybus/hd.c similarity index 100% rename from drivers/staging/greybus/hd.c rename to drivers/greybus/hd.c diff --git a/drivers/staging/greybus/interface.c b/drivers/greybus/interface.c similarity index 100% rename from drivers/staging/greybus/interface.c rename to drivers/greybus/interface.c diff --git a/drivers/staging/greybus/manifest.c b/drivers/greybus/manifest.c similarity index 100% rename from drivers/staging/greybus/manifest.c rename to drivers/greybus/manifest.c diff --git a/drivers/staging/greybus/module.c b/drivers/greybus/module.c similarity index 100% rename from drivers/staging/greybus/module.c rename to drivers/greybus/module.c diff --git a/drivers/staging/greybus/operation.c b/drivers/greybus/operation.c similarity index 100% rename from drivers/staging/greybus/operation.c rename to drivers/greybus/operation.c diff --git a/drivers/staging/greybus/svc.c b/drivers/greybus/svc.c similarity index 100% rename from drivers/staging/greybus/svc.c rename to drivers/greybus/svc.c diff --git a/drivers/staging/greybus/svc_watchdog.c b/drivers/greybus/svc_watchdog.c similarity index 100% rename from drivers/staging/greybus/svc_watchdog.c rename to 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 #include "arpc.h" -#include "greybus_trace.h" +#include "../../greybus/greybus_trace.h" /* Default timeout for USB vendor requests. */ -- 2.23.0