linux/drivers/usb/storage
Alan Stern 4b309f1c49 USB: ene_usb6250: fix first command execution
In the ene_usb6250 sub-driver for usb-storage, the ene_transport()
routine is supposed to initialize the driver before executing the
current command, if the initialization has not already been performed.
However, a bug in the routine causes it to skip the command after
doing the initialization.  Also, the routine does not return an
appropriate error code if either the initialization or the command
fails.

As a result of the first bug, the first command (a SCSI INQUIRY) is
not carried out.  The results can be seen in the system log, in the
form of a warning message and empty or garbage INQUIRY data:

Apr 18 22:40:08 notebook2 kernel: scsi host6: scsi scan: INQUIRY result too short (5), using 36
Apr 18 22:40:08 notebook2 kernel: scsi 6:0:0:0: Direct-Access                                    PQ: 0 ANSI: 0

This patch fixes both errors.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Reported-and-tested-by: Andreas Hartmann <andihartmann@01019freenet.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-18 16:05:24 +02:00
..
alauda.c usb: storage: alauda: don't print on ENOMEM 2016-08-30 19:17:39 +02:00
cypress_atacb.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
datafab.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
debug.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
debug.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
ene_ub6250.c USB: ene_usb6250: fix first command execution 2017-05-18 16:05:24 +02:00
freecom.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
initializers.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
initializers.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
isd200.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
jumpshot.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
karma.c usb: storage: karma: remove useless variable 2017-03-17 13:27:41 +09:00
Kconfig PM / Kconfig: Replace PM_RUNTIME with PM in dependencies 2014-12-13 00:44:04 +01:00
Makefile
onetouch.c usb: storage: fix module reference for scsi host 2015-05-10 16:03:50 +02:00
option_ms.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
option_ms.h
protocol.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
protocol.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
realtek_cr.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
scsiglue.c scsi: introduce a quirk for false cache reporting 2016-09-13 08:08:24 +02:00
scsiglue.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
sddr09.c usb: storage: sddr09: Remove a set-but-not-used variable 2017-01-25 10:52:43 +01:00
sddr55.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
shuttle_usbat.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
sierra_ms.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
sierra_ms.h
transport.c Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y 2016-11-15 11:08:51 +01:00
transport.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
uas-detect.h uas: Set max_sectors_240 quirk for ASM1053 devices 2015-04-28 12:48:57 +02:00
uas.c USB: uas: Fix slave queue_depth not being set 2016-06-01 14:56:24 -07:00
unusual_alauda.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_cypress.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_datafab.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_devs.h USB: storage: e-mail update in drivers/usb/storage/unusual_devs.h 2017-04-25 20:01:23 +02:00
unusual_ene_ub6250.h
unusual_freecom.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_isd200.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_jumpshot.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_karma.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_onetouch.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_realtek.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_sddr09.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_sddr55.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_uas.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
unusual_usbat.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
usb.c USB: storage: refactor endpoint retrieval 2017-03-23 13:54:08 +01:00
usb.h usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00
usual-tables.c usb: storage: fix multi-line comment style 2016-04-26 15:04:38 -07:00