Skip to content

Commit

Permalink
usb: remove libusual
Browse files Browse the repository at this point in the history
The "Low Performance USB Block driver" has been removed which a user of
libusual. Now we have only the usb-storage driver as the only driver in
tree. This makes libusual needless.
This patch removes libusal, fixes up all users. The usual-table is now
linked into usb-storage.
usb_usual.h remains in public include directory because some staging
users seem to need it.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
sebastianas authored and gregkh committed Sep 6, 2012
1 parent 68a5059 commit f61870e
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 350 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/keucr/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ static int get_device_info(struct us_data *us, const struct usb_device_id *id)

us->subclass = idesc->bInterfaceSubClass;
us->protocol = idesc->bInterfaceProtocol;
us->fflags = USB_US_ORIG_FLAGS(id->driver_info);
us->fflags = id->driver_info;
us->Power_IsResum = false;

if (us->fflags & US_FL_IGNORE_DEVICE)
Expand Down
14 changes: 0 additions & 14 deletions drivers/usb/storage/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -213,17 +213,3 @@ config USB_UAS
say 'Y' or 'M' here and the kernel will use the right driver.

If you compile this driver as a module, it will be named uas.

config USB_LIBUSUAL
bool "The shared table of common (or usual) storage devices"
depends on USB
help
This module contains a table of common (or usual) devices
for usb-storage and ub drivers, and allows to switch binding
of these devices without rebuilding modules.

Typical syntax of /etc/modprobe.d/*conf is:

options libusual bias="ub"

If unsure, say N.
9 changes: 1 addition & 8 deletions drivers/usb/storage/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,9 @@ obj-$(CONFIG_USB_STORAGE) += usb-storage.o

usb-storage-y := scsiglue.o protocol.o transport.o usb.o
usb-storage-y += initializers.o sierra_ms.o option_ms.o

usb-storage-y += usual-tables.o
usb-storage-$(CONFIG_USB_STORAGE_DEBUG) += debug.o

ifeq ($(CONFIG_USB_LIBUSUAL),)
usb-storage-y += usual-tables.o
else
obj-$(CONFIG_USB) += usb-libusual.o
usb-libusual-y := libusual.o usual-tables.o
endif

obj-$(CONFIG_USB_STORAGE_ALAUDA) += ums-alauda.o
obj-$(CONFIG_USB_STORAGE_CYPRESS_ATACB) += ums-cypress.o
obj-$(CONFIG_USB_STORAGE_DATAFAB) += ums-datafab.o
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/alauda.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static int init_alauda(struct us_data *us);
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id alauda_usb_ids[] = {
# include "unusual_alauda.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/cypress_atacb.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ MODULE_LICENSE("GPL");
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id cypress_usb_ids[] = {
# include "unusual_cypress.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/datafab.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static int datafab_determine_lun(struct us_data *us,
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id datafab_usb_ids[] = {
# include "unusual_datafab.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/ene_ub6250.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ MODULE_FIRMWARE(MS_RW_FIRMWARE);
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags)}

static struct usb_device_id ene_ub6250_usb_ids[] = {
# include "unusual_ene_ub6250.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/freecom.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static int init_freecom(struct us_data *us);
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id freecom_usb_ids[] = {
# include "unusual_freecom.h"
Expand Down
5 changes: 1 addition & 4 deletions drivers/usb/storage/isd200.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static int isd200_Initialization(struct us_data *us);
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id isd200_usb_ids[] = {
# include "unusual_isd200.h"
Expand All @@ -83,7 +83,6 @@ static struct usb_device_id isd200_usb_ids[] = {
MODULE_DEVICE_TABLE(usb, isd200_usb_ids);

#undef UNUSUAL_DEV
#undef USUAL_DEV

/*
* The flags table
Expand All @@ -105,8 +104,6 @@ static struct us_unusual_dev isd200_unusual_dev_list[] = {
};

#undef UNUSUAL_DEV
#undef USUAL_DEV


/* Timeout defines (in Seconds) */

Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/jumpshot.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ MODULE_LICENSE("GPL");
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id jumpshot_usb_ids[] = {
# include "unusual_jumpshot.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/karma.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static int rio_karma_init(struct us_data *us);
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id karma_usb_ids[] = {
# include "unusual_karma.h"
Expand Down
243 changes: 0 additions & 243 deletions drivers/usb/storage/libusual.c

This file was deleted.

2 changes: 1 addition & 1 deletion drivers/usb/storage/onetouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct usb_onetouch {
vendorName, productName, useProtocol, useTransport, \
initFunction, flags) \
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24) }
.driver_info = (flags) }

static struct usb_device_id onetouch_usb_ids[] = {
# include "unusual_onetouch.h"
Expand Down
2 changes: 1 addition & 1 deletion drivers/usb/storage/realtek_cr.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static int init_realtek_cr(struct us_data *us);
initFunction, flags) \
{\
USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags)|(USB_US_TYPE_STOR<<24)\
.driver_info = (flags) \
}

static const struct usb_device_id realtek_cr_ids[] = {
Expand Down
Loading

0 comments on commit f61870e

Please sign in to comment.