2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-26 15:45:14 +08:00
linux-next/drivers/usb/storage
Oliver Neukum cbeef22fd6 usb: uas: unconditionally bring back host after reset
Quoting Hans:

If we return 1 from our post_reset handler, then our disconnect handler
will be called immediately afterwards. Since pre_reset blocks all scsi
requests our disconnect handler will then hang in the scsi_remove_host
call.

This is esp. bad because our disconnect handler hanging for ever also
stops the USB subsys from enumerating any new USB devices, causes commands
like lsusb to hang, etc.

In practice this happens when unplugging some uas devices because the hub
code may see the device as needing a warm-reset and calls usb_reset_device
before seeing the disconnect. In this case uas_configure_endpoints fails
with -ENODEV. We do not want to print an error for this, so this commit
also silences the shost_printk for -ENODEV.

ENDQUOTE

However, if we do that we better drop any unconditional execution
and report to the SCSI subsystem that we have undergone a reset
but we are not operational now.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-by: Hans de Goede <hdegoede@redhat.com>
CC: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-16 10:01:01 +01:00
..
alauda.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
cypress_atacb.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
datafab.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
debug.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
debug.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
ene_ub6250.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
freecom.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
initializers.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
initializers.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
isd200.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
jumpshot.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
karma.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
Kconfig PM / Kconfig: Replace PM_RUNTIME with PM in dependencies 2014-12-13 00:44:04 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
onetouch.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
option_ms.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
option_ms.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
protocol.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
protocol.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
realtek_cr.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
scsiglue.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
scsiglue.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
sddr09.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
sddr55.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
shuttle_usbat.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
sierra_ms.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sierra_ms.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
transport.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
transport.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
uas-detect.h uas: Always apply US_FL_NO_ATA_1X quirk to Seagate devices 2017-11-28 15:17:49 +01:00
uas.c usb: uas: unconditionally bring back host after reset 2018-01-16 10:01:01 +01:00
unusual_alauda.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_cypress.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_datafab.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_devs.h USB: uas and storage: Add US_FL_BROKEN_FUA for another JMicron JMS567 ID 2017-12-08 17:31:20 +01:00
unusual_ene_ub6250.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_freecom.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_isd200.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_jumpshot.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_karma.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_onetouch.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_realtek.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_sddr09.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_sddr55.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
unusual_uas.h Merge 4.15-rc8 into usb-next 2018-01-15 15:00:11 +01:00
unusual_usbat.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
usb.c USB: storage: Remove obsolete "FIXME" 2017-12-06 09:21:18 +01:00
usb.h USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00
usual-tables.c USB: storage: Remove redundant license text 2017-11-04 11:55:38 +01:00