Skip to content

Commit

Permalink
USB: Move wusbcore and UWB to staging as it is obsolete
Browse files Browse the repository at this point in the history
The UWB and wusbcore code is long obsolete, so let us just move the code
out of the real part of the kernel and into the drivers/staging/
location with plans to remove it entirely in a few releases.

Link: https://lore.kernel.org/r/20190806101509.GA11280@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Aug 8, 2019
1 parent 7d9c1d2 commit 71ed79b
Show file tree
Hide file tree
Showing 91 changed files with 120 additions and 109 deletions.
15 changes: 4 additions & 11 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -3800,14 +3800,9 @@ F: scripts/sign-file.c
F: scripts/extract-cert.c

CERTIFIED WIRELESS USB (WUSB) SUBSYSTEM:
L: linux-usb@vger.kernel.org
L: devel@driverdev.osuosl.org
S: Orphan
F: Documentation/usb/wusb-design-overview.rst
F: Documentation/usb/wusb-cbaf
F: drivers/usb/host/hwa-hc.c
F: drivers/usb/host/whci/
F: drivers/usb/wusbcore/
F: include/linux/usb/wusb*
F: drivers/staging/wbusbcore/

CFAG12864B LCD DRIVER
M: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
Expand Down Expand Up @@ -16447,11 +16442,9 @@ F: drivers/usb/common/ulpi.c
F: include/linux/ulpi/

ULTRA-WIDEBAND (UWB) SUBSYSTEM:
L: linux-usb@vger.kernel.org
L: devel@driverdev.osuosl.org
S: Orphan
F: drivers/uwb/
F: include/linux/uwb.h
F: include/linux/uwb/
F: drivers/staging/uwb/

UNICODE SUBSYSTEM:
M: Gabriel Krisman Bertazi <krisman@collabora.com>
Expand Down
2 changes: 0 additions & 2 deletions drivers/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ source "drivers/hid/Kconfig"

source "drivers/usb/Kconfig"

source "drivers/uwb/Kconfig"

source "drivers/mmc/Kconfig"

source "drivers/memstick/Kconfig"
Expand Down
1 change: 0 additions & 1 deletion drivers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ obj-$(CONFIG_ZORRO) += zorro/
obj-$(CONFIG_ATA_OVER_ETH) += block/aoe/
obj-$(CONFIG_PARIDE) += block/paride/
obj-$(CONFIG_TC) += tc/
obj-$(CONFIG_UWB) += uwb/
obj-$(CONFIG_USB_PHY) += usb/
obj-$(CONFIG_USB) += usb/
obj-$(CONFIG_USB_SUPPORT) += usb/
Expand Down
3 changes: 3 additions & 0 deletions drivers/staging/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,7 @@ source "drivers/staging/kpc2000/Kconfig"

source "drivers/staging/isdn/Kconfig"

source "drivers/staging/wusbcore/Kconfig"
source "drivers/staging/uwb/Kconfig"

endif # STAGING
2 changes: 2 additions & 0 deletions drivers/staging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@ obj-$(CONFIG_EROFS_FS) += erofs/
obj-$(CONFIG_FIELDBUS_DEV) += fieldbus/
obj-$(CONFIG_KPC2000) += kpc2000/
obj-$(CONFIG_ISDN_CAPI) += isdn/
obj-$(CONFIG_UWB) += uwb/
obj-$(CONFIG_USB_WUSB) += wusbcore/
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions drivers/staging/uwb/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TODO: Remove in late 2019 unless there are users

There seems to not be any real wireless USB devices anywhere in the wild
anymore. It turned out to be a failed technology :(

This will be removed from the tree if no one objects.

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/uwb.h>
#include "uwb.h"

#include "uwb-internal.h"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/uwb/drp-ie.c → drivers/staging/uwb/drp-ie.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <linux/kernel.h>
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/uwb.h>

#include "uwb.h"
#include "uwb-internal.h"


Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions drivers/uwb/hwa-rc.c → drivers/staging/uwb/hwa-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/usb/wusb.h>
#include <linux/usb/wusb-wa.h>
#include <linux/uwb.h>
#include "../wusbcore/include/wusb.h"
#include "../wusbcore/include/wusb-wa.h"
#include "uwb.h"

#include "uwb-internal.h"

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/device.h>
#include <linux/uwb.h>
#include <linux/random.h>
#include <linux/export.h>
#include "../../uwb.h"

/*
* i1480_rceb_check - Check RCEB for expected field values
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
#ifndef __i1480_DFU_H__
#define __i1480_DFU_H__

#include <linux/uwb/spec.h>
#include <linux/types.h>
#include <linux/completion.h>
#include "../../include/spec.h"

#define i1480_FW_UPLOAD_MODE_MASK (cpu_to_le32(0x00000018))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/slab.h>
#include <linux/uwb.h>
#include "../../uwb.h"
#include "i1480-dfu.h"

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/firmware.h>
#include <linux/usb/wusb.h>
#include "../../../wusbcore/include/wusb.h"
#include "i1480-dfu.h"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/uwb.h>
#include <linux/usb/wusb.h>
#include <linux/usb/wusb-wa.h>
#include "../../uwb.h"
#include "../../../wusbcore/include/wusb.h"
#include "../../../wusbcore/include/wusb-wa.h"
#include "i1480-dfu.h"

struct i1480_usb {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/usb.h>
#include <linux/uwb.h>
#include "../uwb.h"
#include "dfu/i1480-dfu.h"


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/uwb/pal.c → drivers/staging/uwb/pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
#include <linux/kernel.h>
#include <linux/debugfs.h>
#include <linux/uwb.h>
#include <linux/export.h>

#include "uwb.h"
#include "uwb-internal.h"

/**
Expand Down
2 changes: 1 addition & 1 deletion drivers/uwb/radio.c → drivers/staging/uwb/radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* Copyright (C) 2008 Cambridge Silicon Radio Ltd.
*/
#include <linux/kernel.h>
#include <linux/uwb.h>
#include <linux/export.h>

#include "uwb.h"
#include "uwb-internal.h"


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/uwb/rsv.c → drivers/staging/uwb/rsv.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* Copyright (C) 2008 Cambridge Silicon Radio Ltd.
*/
#include <linux/kernel.h>
#include <linux/uwb.h>
#include <linux/slab.h>
#include <linux/random.h>
#include <linux/export.h>

#include "uwb.h"
#include "uwb-internal.h"

static void uwb_rsv_timer(struct timer_list *t);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion drivers/uwb/umc-bus.c → drivers/staging/uwb/umc-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
#include <linux/sysfs.h>
#include <linux/workqueue.h>
#include <linux/module.h>
#include <linux/uwb/umc.h>
#include <linux/pci.h>
#include "include/umc.h"

static int umc_bus_pre_reset_helper(struct device *dev, void *data)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/uwb/umc-dev.c → drivers/staging/uwb/umc-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/uwb/umc.h>
#include "include/umc.h"

static void umc_device_release(struct device *dev)
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/uwb/umc-drv.c → drivers/staging/uwb/umc-drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/uwb/umc.h>
#include "include/umc.h"

int __umc_driver_register(struct umc_driver *umc_drv, struct module *module,
const char *mod_name)
Expand Down
3 changes: 1 addition & 2 deletions drivers/uwb/uwb-debug.c → drivers/staging/uwb/uwb-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
#include <linux/uaccess.h>
#include <linux/seq_file.h>

#include <linux/uwb/debug-cmd.h>

#include "include/debug-cmd.h"
#include "uwb-internal.h"

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/uwb.h>
#include <linux/mutex.h>
#include "uwb.h"

struct uwb_beca_e;

Expand Down
2 changes: 1 addition & 1 deletion include/linux/uwb.h → drivers/staging/uwb/uwb.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <linux/timer.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/uwb/spec.h>
#include <asm/page.h>
#include "include/spec.h"

struct uwb_dev;
struct uwb_beca_e;
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions drivers/uwb/whc-rc.c → drivers/staging/uwb/whc-rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/uwb.h>
#include <linux/uwb/whci.h>
#include <linux/uwb/umc.h>
#include "uwb.h"
#include "include/whci.h"
#include "include/umc.h"

#include "uwb-internal.h"

Expand Down
4 changes: 2 additions & 2 deletions drivers/uwb/whci.c → drivers/staging/uwb/whci.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <linux/uwb/whci.h>
#include <linux/uwb/umc.h>
#include "include/whci.h"
#include "include/umc.h"

struct whci_card {
struct pci_dev *pci;
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ config USB_WUSB_CBAF_DEBUG
to the system log. Select this if you are having a problem with
CBA support and want to see more of what is going on.

source "drivers/staging/wusbcore/host/Kconfig"
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ wusb-wa-y := \
wa-nep.o \
wa-rpipe.o \
wa-xfer.o

obj-y += host/
8 changes: 8 additions & 0 deletions drivers/staging/wusbcore/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TODO: Remove in late 2019 unless there are users

There seems to not be any real wireless USB devices anywhere in the wild
anymore. It turned out to be a failed technology :(

This will be removed from the tree if no one objects.

Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
#include <linux/random.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/uwb.h>
#include <linux/usb/wusb.h>
#include <linux/usb/association.h>
#include "../uwb/uwb.h"
#include "include/wusb.h"
#include "include/association.h"

#define CBA_NAME_LEN 0x40 /* [WUSB-AM] table 4-7 */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
#include <linux/crypto.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/uwb.h>
#include <linux/slab.h>
#include <linux/usb/wusb.h>
#include <linux/scatterlist.h>
#include "../uwb/uwb.h"
#include "include/wusb.h"

static int debug_crypto_verify;

Expand Down
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions drivers/staging/wusbcore/host/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SPDX-License-Identifier: GPL-2.0

config USB_WHCI_HCD
tristate "Wireless USB Host Controller Interface (WHCI) driver"
depends on USB_PCI && USB && UWB
select USB_WUSB
select UWB_WHCI
help
A driver for PCI-based Wireless USB Host Controllers that are
compliant with the WHCI specification.

To compile this driver a module, choose M here: the module
will be called "whci-hcd".

config USB_HWA_HCD
tristate "Host Wire Adapter (HWA) driver"
depends on USB && UWB
select USB_WUSB
select UWB_HWA
help
This driver enables you to connect Wireless USB devices to
your system using a Host Wire Adaptor USB dongle. This is an
UWB Radio Controller and WUSB Host Controller connected to
your machine via USB (specified in WUSB1.0).

To compile this driver a module, choose M here: the module
will be called "hwa-hc".

3 changes: 3 additions & 0 deletions drivers/staging/wusbcore/host/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_USB_WHCI_HCD) += whci/
obj-$(CONFIG_USB_HWA_HCD) += hwa-hc.o
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#include <linux/workqueue.h>
#include <linux/wait.h>
#include <linux/completion.h>
#include "../wusbcore/wa-hc.h"
#include "../wusbcore/wusbhc.h"
#include "../wa-hc.h"
#include "../wusbhc.h"

struct hwahc {
struct wusbhc wusbhc; /* has to be 1st */
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
#include <linux/kernel.h>
#include <linux/gfp.h>
#include <linux/dma-mapping.h>
#include <linux/uwb/umc.h>
#include <linux/usb.h>

#include "../../wusbcore/wusbhc.h"
#include "../../../uwb/include/umc.h"
#include "../../wusbhc.h"

#include "whcd.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <linux/seq_file.h>
#include <linux/export.h>

#include "../../wusbcore/wusbhc.h"
#include "../../wusbhc.h"

#include "whcd.h"

Expand Down
Loading

0 comments on commit 71ed79b

Please sign in to comment.