android_kernel_xiaomi_sm8350/drivers/usb/storage
Alan Stern e6e244b6cb usb-storage: prepare for subdriver separation
This patch (as1206) is the first step in converting usb-storage's
subdrivers into separate modules.  It makes the following large-scale
changes:

	Remove a bunch of unnecessary #ifdef's from usb_usual.h.
	Not truly necessary, but it does clean things up.

	Move the USB device-ID table (which is duplicated between
	libusual and usb-storage) into its own source file,
	usual-tables.c, and arrange for this to be linked with
	either libusual or usb-storage according to whether
	USB_LIBUSUAL is configured.

	Add to usual-tables.c a new usb_usual_ignore_device()
	function to detect whether a particular device needs to be
	managed by a subdriver and not by the standard handlers
	in usb-storage.

	Export a whole bunch of functions in usb-storage, renaming
	some of them because their names don't already begin with
	"usb_stor_".  These functions will be needed by the new
	subdriver modules.

	Split usb-storage's probe routine into two functions.
	The subdrivers will call the probe1 routine, then fill in
	their transport and protocol settings, and then call the
	probe2 routine.

	Take the default cases and error checking out of
	get_transport() and get_protocol(), which run during
	probe1, and instead put a check for invalid transport
	or protocol values into the probe2 function.

	Add a new probe routine to be used for standard devices,
	i.e., those that don't need a subdriver.  This new routine
	checks whether the device should be ignored (because it
	should be handled by ub or by a subdriver), and if not,
	calls the probe1 and probe2 functions.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-03-24 16:20:34 -07:00
..
alauda.c USB: add missing KERN_* constants to printks 2009-03-24 16:20:30 -07:00
alauda.h
cypress_atacb.c USB: fix USB_STORAGE_CYPRESS_ATACB 2009-03-24 16:20:31 -07:00
cypress_atacb.h
datafab.c
datafab.h
debug.c
debug.h
freecom.c
freecom.h
initializers.c
initializers.h
isd200.c
isd200.h
jumpshot.c
jumpshot.h
karma.c
karma.h
Kconfig usb_storage: make Kconfig note visible in the console 2009-03-24 16:20:30 -07:00
libusual.c usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00
Makefile usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00
onetouch.c
onetouch.h
option_ms.c USB: unusual dev for Option N.V. ZeroCD modems 2009-01-07 10:00:09 -08:00
option_ms.h USB: unusual dev for Option N.V. ZeroCD modems 2009-01-07 10:00:09 -08:00
protocol.c usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00
protocol.h USB: usb-storage: merge ATAPI and QIC-157 protocol routines 2009-01-07 09:59:57 -08:00
scsiglue.c usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00
scsiglue.h
sddr09.c USB: add missing KERN_* constants to printks 2009-03-24 16:20:30 -07:00
sddr09.h USB: usb-storage: merge DPCM support into SDDR09 2009-01-07 10:00:06 -08:00
sddr55.c USB: add missing KERN_* constants to printks 2009-03-24 16:20:30 -07:00
sddr55.h
shuttle_usbat.c
shuttle_usbat.h
sierra_ms.c
sierra_ms.h
transport.c usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00
transport.h USB: usb-storage: merge CB and CBI transport routines 2009-01-07 09:59:57 -08:00
unusual_devs.h USB: storage: Unusual USB device Prolific 2507 variation added 2009-03-17 14:01:29 -07:00
usb.c usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00
usb.h usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00
usual-tables.c usb-storage: prepare for subdriver separation 2009-03-24 16:20:34 -07:00