Skip to contentSkip to conversation

staging: greybus: remove driver depending on nonexistent config option

PATCH Superseded Ethan Nelson-Moore 2 participants 4 messages Jun 9 – Jun 10

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: greybus: remove driver depending on nonexistent config option

The Greybus Arche Platform driver depends on the config option USB_HSIC_USB3613, which has never existed in mainline Linux. Therefore, it is impossible for anyone to be using it with unmodified mainline kernels. Remove it and move the former maintainer to the CREDITS file.

---
 CREDITS                                  |   4 +
 MAINTAINERS                              |   7 -
 drivers/staging/greybus/Kconfig          |   9 -
 drivers/staging/greybus/Makefile         |   6 -
 drivers/staging/greybus/arche-apb-ctrl.c | 491 -----------------
 drivers/staging/greybus/arche-platform.c | 653 -----------------------
 drivers/staging/greybus/arche_platform.h |  28 -
 7 files changed, 4 insertions(+), 1194 deletions(-)
 delete mode 100644 drivers/staging/greybus/arche-apb-ctrl.c
 delete mode 100644 drivers/staging/greybus/arche-platform.c
 delete mode 100644 drivers/staging/greybus/arche_platform.h
CREDITS +4 -0
index 17962bdd6dbd..19a493aceabf 100644
@@ -1701,6 +1701,10 @@ S: Talstr. 1
 S: D - 72072 Tuebingen
 S: Germany
 
+N: Vaibhav Hiremath
+E: [email protected]
+D: Greybus Arche Platform driver
+
 N: Richard Hirst
 E: [email protected]
 E: [email protected]
MAINTAINERS +0 -7
index e035a3be797c..2461e8a6a45a 100644
@@ -11122,13 +11122,6 @@ M:	Bryan O'Donoghue <[email protected]>
 S:	Maintained
 F:	drivers/staging/greybus/loopback.c
 
-GREYBUS PLATFORM DRIVERS
-M:	Vaibhav Hiremath <[email protected]>
-S:	Maintained
-F:	drivers/staging/greybus/arche-apb-ctrl.c
-F:	drivers/staging/greybus/arche-platform.c
-F:	drivers/staging/greybus/arche_platform.h
-
 GREYBUS SDIO/GPIO/SPI PROTOCOLS DRIVERS
 M:	Rui Miguel Silva <[email protected]>
 S:	Maintained
drivers/staging/greybus/Kconfig +0 -9
index 7635f3e850fa..c25da61570eb 100644
@@ -204,13 +204,4 @@ config GREYBUS_USB
 
 endif	# GREYBUS_BRIDGED_PHY
 
-config GREYBUS_ARCHE
-	tristate "Greybus Arche Platform driver"
-	depends on USB_HSIC_USB3613 || COMPILE_TEST
-	help
-	  Select this option if you have an Arche device.
-
-	  To compile this code as a module, chose M here: the module
-	  will be called gb-arche.ko
-
 endif	# GREYBUS
drivers/staging/greybus/Makefile +0 -6
index 7c5e89622334..7b9807f8a1a3 100644
@@ -65,9 +65,3 @@ obj-$(CONFIG_GREYBUS_SDIO)		+= gb-sdio.o
 obj-$(CONFIG_GREYBUS_SPI)		+= gb-spi.o gb-spilib.o
 obj-$(CONFIG_GREYBUS_UART)		+= gb-uart.o
 obj-$(CONFIG_GREYBUS_USB)		+= gb-usb.o
-
-
-# Greybus Platform driver
-gb-arche-y	:= arche-platform.o arche-apb-ctrl.o
-
-obj-$(CONFIG_GREYBUS_ARCHE)	+= gb-arche.o
drivers/staging/greybus/arche-apb-ctrl.c deleted +0 -491

491 lines not on this page · raw message

drivers/staging/greybus/arche-platform.c deleted +0 -653

653 lines not on this page · raw message

drivers/staging/greybus/arche_platform.h deleted +0 -28
deleted file mode 100644
index 9d997f2d6517..000000000000
@@ -1,28 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * Arche Platform driver to enable Unipro link.
- *
- * Copyright 2015-2016 Google Inc.
- * Copyright 2015-2016 Linaro Ltd.
- */
-
-#ifndef __ARCHE_PLATFORM_H
-#define __ARCHE_PLATFORM_H
-
-enum arche_platform_state {
-	ARCHE_PLATFORM_STATE_OFF,
-	ARCHE_PLATFORM_STATE_ACTIVE,
-	ARCHE_PLATFORM_STATE_STANDBY,
-	ARCHE_PLATFORM_STATE_FW_FLASHING,
-};
-
-int __init arche_apb_init(void);
-void __exit arche_apb_exit(void);
-
-/* Operational states for the APB device */
-int apb_ctrl_coldboot(struct device *dev);
-int apb_ctrl_fw_flashing(struct device *dev);
-int apb_ctrl_standby_boot(struct device *dev);
-void apb_ctrl_poweroff(struct device *dev);
-
-#endif	/* __ARCHE_PLATFORM_H */
Signature · 1 line
2.43.0
#1 lore raw
Quoted 2 lines · Ethan Nelson-Moore

The Greybus Arche Platform driver depends on the config option USB_HSIC_USB3613, which has never existed in mainline Linux. Therefore,

Actually it dosn't. The depends on line says:

     depends on USB_HSIC_USB3613 || COMPILE_TEST

That's a logical OR operation, it depends on USB_HSIC_USB3613 OR COMPILE_TEST.

Quoted 2 lines

it is impossible for anyone to be using it with unmodified mainline kernels. Remove it and move the former maintainer to the CREDITS file.

Indeed, the impossible for anyone to be using holds true, as mentioned in:
https://lore.kernel.org/all/[email protected]/

I think this should be removed, but I think the commit message could be worked.

Sincerely,
Agatha Isabelle Moreira

#2 lore raw

Hi, Agatha,

Quoted 10 lines · Agatha Isabelle Moreira
Quoted 2 lines · Ethan Nelson-Moore

The Greybus Arche Platform driver depends on the config option USB_HSIC_USB3613, which has never existed in mainline Linux. Therefore,

Actually it dosn't. The depends on line says:

     depends on USB_HSIC_USB3613 || COMPILE_TEST

That's a logical OR operation, it depends on USB_HSIC_USB3613 OR COMPILE_TEST.

The function of COMPILE_TEST is to allow drivers to be compiled in environments where they do not work, to enable better code coverage and easier testing of tree-wide changes without cross compilers. It should never be enabled for production use cases. So yes, technically, it does depend on either option, but only on one "real" option. Therefore, I don't think there is anything wrong with the commit message.

Ethan

#3 lore raw
Quoted 1 line · Ethan Nelson-Moore

Hi, Agatha,

Hi, Ethan!

Quoted 8 lines · Agatha Isabelle Moreira
Quoted 6 lines · Ethan Nelson-Moore
Quoted 2 lines

The Greybus Arche Platform driver depends on the config option USB_HSIC_USB3613, which has never existed in mainline Linux. Therefore,

Actually it dosn't. The depends on line says:

Quoted 8 lines
Quoted 4 lines
     depends on USB_HSIC_USB3613 || COMPILE_TEST

That's a logical OR operation, it depends on USB_HSIC_USB3613 OR COMPILE_TEST.

The function of COMPILE_TEST is to allow drivers to be compiled in environments where they do not work, to enable better code coverage and easier testing of tree-wide changes without cross compilers. It

Yes, and that's been also discussed in the thread I linked on my previous message as well. My point is just on commit message accuracy.

Quoted 1 line

should never be enabled for production use cases. So yes, technically,

Not the main point here, but I'd also note that no staging driver is intended for production use cases.

Quoted 3 lines

it does depend on either option, but only on one "real" option. Therefore, I don't think there is anything wrong with the commit message.

While I do understand that this driver only compiles and cannot be loaded, I think this piece of information isn't accurately described in the commit message, especially when considering it's been argued about that in previous patches.

Sincerely,
Agatha Isabelle Moreira