usb: uas: unconditionally bring back host after reset
Subsystems (2)
Greg Kroah-Hartman
maintainerQuoted 23 lines · Oliver Neukum
Quoting Hans:
If we return 1 from our
post_resethandler, then our disconnect handler will be called immediately afterwards. Sincepre_resetblocks all scsi requests our disconnect handler will then hang in thescsi_remove_hostcall.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_devicebefore seeing the disconnect. In this caseuas_configure_endpointsfails with-ENODEV. We do not want to print an error for this, so this commit also silences theshost_printkfor-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.
Quoted 5 lines
Signed-off-by Oliver Neukum <[email protected]>Reported-by Hans de Goede <[email protected]>--- Makefile | 2 +-
I don't think you want me to patch this file :)